summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas BrĂ¼derli2007-09-12 13:03:25 +0000
committerThomas BrĂ¼derli2007-09-12 13:03:25 +0000
commit6f69216ebdf692abf88a25b586f5901c8ab725cb (patch)
tree7f59b322dc9ace41c52ca35893eec5f36bc3e91d
parentd0f0a83110b1272dcfeaf0c77222da07acd0d540 (diff)
downloaditools-6f69216ebdf692abf88a25b586f5901c8ab725cb.tar.gz
itools-6f69216ebdf692abf88a25b586f5901c8ab725cb.tar.bz2
itools-6f69216ebdf692abf88a25b586f5901c8ab725cb.zip
Don't send max-age header for Opera browsers
-rw-r--r--itjs.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/itjs.php b/itjs.php
index d8932ed..4e3b89c 100644
--- a/itjs.php
+++ b/itjs.php
@@ -40,7 +40,8 @@ else if (!ereg('\.html$', $file))
if ($checksum != $_SERVER['HTTP_IF_NONE_MATCH'])
{
- header("Cache-Control: max-age=900");
+ if (!preg_match('/Opera/', $_SERVER['HTTP_USER_AGENT']))
+ header("Cache-Control: max-age=900");
if ($_REQUEST['boot'])
$data .= "window.it_boot_init();";