From 0202ee457256fcd2a1dd8fc09637cd8d732e7a8d Mon Sep 17 00:00:00 2001 From: superawesome Date: Fri, 1 Aug 2014 11:26:34 -0700 Subject: [PATCH] Longer max-age There's no longer any reason why this can't be cached for a longer interval. This change increases our LB cache hit rate from about 90% to 93-94%, which is a 30-40% reduction in load on the backend servers. Still don't want to go *too* high, as it will start to elongate the time between when a release is created and when it becomes available. --- bouncer/php/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bouncer/php/functions.php b/bouncer/php/functions.php index 72a1cf3..698f52e 100644 --- a/bouncer/php/functions.php +++ b/bouncer/php/functions.php @@ -6,7 +6,7 @@ function show_no_cache_headers() { //header('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0, private'); //header('Pragma: no-cache'); - header('Cache-Control: max-age=15'); + header('Cache-Control: max-age=60'); } /**