From 16e6485b56fcfb2d2f1dace96b7f055912683798 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Sat, 20 Sep 2008 14:08:14 +0000 Subject: Workaround agressive cache of firefox by adding some options in the header. this is the same issue as the traffic graph one. --- usr/local/www/graph_cpu.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'usr') diff --git a/usr/local/www/graph_cpu.php b/usr/local/www/graph_cpu.php index 0e45a1a..8a7822e 100644 --- a/usr/local/www/graph_cpu.php +++ b/usr/local/www/graph_cpu.php @@ -36,7 +36,11 @@ ##|*MATCH=graph_cpu.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 header("Content-type: image/svg+xml"); /********* Other conf *******/ -- cgit v1.1