svn: /web/php/trunk/include/ header.inc
[email protected] (Hannes Magnusson)
| Newsgroups | php.webmaster |
|---|---|
| Message-ID | <[email protected]> |
bjori Sat, 01 Jan 2011 13:25:37 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306946
Log:
disable page caching too :]
Changed paths:
U web/php/trunk/include/header.inc
Modified: web/php/trunk/include/header.inc
===================================================================
--- web/php/trunk/include/header.inc 2011-01-01 08:39:38 UTC (rev 306945)
+++ web/php/trunk/include/header.inc 2011-01-01 13:25:37 UTC (rev 306946)
@@ -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>