diff options
author | Christian Helbling | 2015-03-23 11:41:51 +0100 |
---|---|---|
committer | Christian Helbling | 2015-03-23 11:41:51 +0100 |
commit | 3a9e733fc624f8b36b157d91b6e501751fada165 (patch) | |
tree | 7f5b3a74910a88b6804f74805a23e1ebaa1d8dce | |
parent | 91b5bfeb272cd867d902d8164f9912cef2d820b3 (diff) | |
download | itools-3a9e733fc624f8b36b157d91b6e501751fada165.tar.gz itools-3a9e733fc624f8b36b157d91b6e501751fada165.tar.bz2 itools-3a9e733fc624f8b36b157d91b6e501751fada165.zip |
don't send alwaysvalid etag when checksum is '-' which is used for a short time after some file has changed - such an url shold not be cached
-rw-r--r-- | itjs.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -80,7 +80,8 @@ else if (!it::match('\.html$', $file)) header("Content-Type: application/x-javascript; charset=$charset"); } -@header("Etag: alwaysvalid"); # we have checksums in the url. client should always keep the version he downloaded along with the html +if ($crc != "-") + @header("Etag: alwaysvalid"); # we have checksums in the url. client should always keep the version he downloaded along with the html if (it::is_live() && !$_REQUEST['retry']) { |