From cafb664ee5d5accdab09ff4310720d418ab082c9 Mon Sep 17 00:00:00 2001 From: Joshua Seigler Date: Sun, 26 Jun 2016 23:51:40 -0400 Subject: [PATCH] better headers to handle caching proxies --- buffer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buffer.php b/buffer.php index bcb839a..c4a7ae8 100644 --- a/buffer.php +++ b/buffer.php @@ -33,6 +33,9 @@ header("Etag: $etag"); header("Expires: ".gmdate("D, d M Y H:i:s", $last_modified_time + CACHE_TIME)." GMT"); + // tell any caches that I really mean it with these other headers + header("Cache-Control: max-age=".CACHE_TIME.", must-revalidate"); + // exit if not modified if (@strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $last_modified_time || @trim($_SERVER['HTTP_IF_NONE_MATCH']) == $etag) {