com web/php: disable page caching too :]: include/header.inc
| From: | Paul Dragoonis | Date: | Sat, 01 Jan 2011 13:25:37 +0000 |
| Subject: | com web/php: disable page caching too :]: include/header.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-23687@lists.php.net to get a copy of this message | ||
Commit: 0c6cfe5d9dd22b5b5f24c99bcbb74657077eb37c
Author: Hannes Magnusson <bjori@php.net> 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>