summaryrefslogtreecommitdiffstats
path: root/usr/local/www/status_rrd_graph_img.php
diff options
context:
space:
mode:
authorJose Luis Duran <jlduran@users.noreply.github.com>2015-04-14 20:02:54 -0300
committerJose Luis Duran <jlduran@users.noreply.github.com>2015-04-14 20:07:52 -0300
commit2ebbb0bc13e3f3f5d7c2cf6e78757de57c7201f3 (patch)
treeeda71e440c8a9d3d28ab2b71146c0b8375123a3e /usr/local/www/status_rrd_graph_img.php
parent2c5fda82fbd37cd8da9cefd415c44176682dcf19 (diff)
downloadpfsense-2ebbb0bc13e3f3f5d7c2cf6e78757de57c7201f3.zip
pfsense-2ebbb0bc13e3f3f5d7c2cf6e78757de57c7201f3.tar.gz
Remove pre-check and post-check from Cache-Control
If both `post-check` and `pre-check` are specified and set to `0`, both are entirely ignored: http://blogs.msdn.com/b/ieinternals/archive/2009/07/20/using-post_2d00_check-and-pre_2d00_check-cache-directives.aspx
Diffstat (limited to 'usr/local/www/status_rrd_graph_img.php')
-rw-r--r--usr/local/www/status_rrd_graph_img.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/status_rrd_graph_img.php b/usr/local/www/status_rrd_graph_img.php
index 4a136ac..74e7d3f 100644
--- a/usr/local/www/status_rrd_graph_img.php
+++ b/usr/local/www/status_rrd_graph_img.php
@@ -1263,7 +1263,7 @@ if(($graphcmdreturn <> 0) || (! $data)) {
header("Content-type: image/png");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
- header("Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0");
+ header("Cache-Control: no-cache, no-store, must-revalidate");
header("Pragma: no-cache");
$file= "/usr/local/www/themes/{$g['theme']}/images/misc/rrd_error.png";
readfile($file);
@@ -1273,7 +1273,7 @@ if(($graphcmdreturn <> 0) || (! $data)) {
header("Content-type: image/png");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
- header("Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post-check=0");
+ header("Cache-Control: no-cache, no-store, must-revalidate");
header("Pragma: no-cache");
readfile($file);
}
OpenPOWER on IntegriCloud