summaryrefslogtreecommitdiff
path: root/itjs.php
diff options
context:
space:
mode:
authorChristian Helbling2015-03-23 11:41:51 +0100
committerChristian Helbling2015-03-23 11:41:51 +0100
commit3a9e733fc624f8b36b157d91b6e501751fada165 (patch)
tree7f5b3a74910a88b6804f74805a23e1ebaa1d8dce /itjs.php
parent91b5bfeb272cd867d902d8164f9912cef2d820b3 (diff)
downloaditools-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
Diffstat (limited to 'itjs.php')
-rw-r--r--itjs.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/itjs.php b/itjs.php
index 545d7cb..8ba677c 100644
--- a/itjs.php
+++ b/itjs.php
@@ -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'])
{