From 3a9e733fc624f8b36b157d91b6e501751fada165 Mon Sep 17 00:00:00 2001 From: Christian Helbling Date: Mon, 23 Mar 2015 11:41:51 +0100 Subject: 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 --- itjs.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'itjs.php') 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']) { -- cgit v1.2.3