Commit:    0c6cfe5d9dd22b5b5f24c99bcbb74657077eb37c
Author:    Hannes Magnusson <[email protected]>         Sat, 1 Jan 2011 13:25:37 
+0000
Parents:   bb4447a79962a553eb47785dcc58eb14364cd93c
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=0c6cfe5d9dd22b5b5f24c99bcbb74657077eb37c

Log:
disable page caching too :]

Changed paths:
  M  include/header.inc


Diff:
diff --git a/include/header.inc b/include/header.inc
index a41a2ce..c4e680d 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -1,4 +1,10 @@
-<?php $v = "?v=" .$_SERVER["REQUEST_TIME"]; // Disable caching, annoying while 
developing ?>
+<?php
+// Disable caching, annoying while developing
+$v = "?v=" .$_SERVER["REQUEST_TIME"];
+header("Expires: Thu, 19 Nov 1981 08:52:00 GMT");
+header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, 
pre-check=0");
+header("Pragma: no-cache");
+?>
 <!DOCTYPE html>
 <html xmlns="http://www.w3.org/1999/xhtml"; lang="<?php echo $lang?>">
 <head>


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to