summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-09-12 15:33:51 -0400
committerScott Ullrich <sullrich@gmail.com>2011-09-12 15:33:51 -0400
commitbbc1f86d4f1c0bdda01ffaa388231ccf3a6ec4a7 (patch)
tree79edbee8a2c7e6cc69722919f81c5c575a10ef34
parent851083bd2f9c382dc513d4a10608f5dc840efc01 (diff)
downloadpfsense-bbc1f86d4f1c0bdda01ffaa388231ccf3a6ec4a7.zip
pfsense-bbc1f86d4f1c0bdda01ffaa388231ccf3a6ec4a7.tar.gz
Add no cache header
-rw-r--r--usr/local/www/getstats.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/usr/local/www/getstats.php b/usr/local/www/getstats.php
index 7687981..a20f14e 100644
--- a/usr/local/www/getstats.php
+++ b/usr/local/www/getstats.php
@@ -36,6 +36,12 @@
##|*MATCH=getstats.php*
##|-PRIV
+header("Last-Modified: " . gmdate( "D, j M Y H:i:s" ) . " GMT" );
+header("Expires: " . gmdate( "D, j M Y H:i:s", time() ) . " GMT" );
+header("Cache-Control: no-store, no-cache, must-revalidate" ); // HTTP/1.1
+header("Cache-Control: post-check=0, pre-check=0", FALSE );
+header("Pragma: no-cache"); // HTTP/1.0
+
require_once("guiconfig.inc");
include_once("includes/functions.inc.php");
OpenPOWER on IntegriCloud