mirror of
https://github.com/seigler/neat-charts
synced 2025-07-27 09:26:10 +00:00
better headers to handle caching proxies
This commit is contained in:
parent
de47e4569a
commit
cafb664ee5
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue