Commits

Thijs Alkemade  committed 8ba8bd3

Increase the stats caching to 30m.

  • Participants
  • Parent commits 9313ae5

Comments (0)

Files changed (2)

 
 include("common.php");
 
-header("Cache-Control: max-age=600");
+header("Cache-Control: max-age=1800");
 
 // Different policy for the charts API
 header("Content-Security-Policy: default-src 'self'; script-src 'self' https://www.google.com 'unsafe-inline' 'unsafe-eval'; style-src 'self' https://www.google.com https://ajax.googleapis.com");
 	}
 
 	if ($refresh !== NULL) {
-		header("Cache-Control: max-age=" . $refresh);
+		header("Cache-Control: must-revalidate, max-age=" . $refresh);
 		common_header("<meta http-equiv='refresh' content='" . $refresh . "'>");
 	} else {
 		common_header("");