diff options
author | Marcello Coutinho <marcellocoutinho@gmail.com> | 2012-04-10 16:06:03 -0300 |
---|---|---|
committer | marcelloc <marcellocoutinho@gmail.com> | 2012-04-10 16:06:03 -0300 |
commit | 12d41a2bb0219463ead733614a0ca41b0e7b305f (patch) | |
tree | b10cae4616a68410bcdfe20f6afb880f276c967a /config/sarg/sarg_frame.php | |
parent | 1a2be8cf92c27534675aff54e134b338dade1a63 (diff) | |
download | pfsense-packages-12d41a2bb0219463ead733614a0ca41b0e7b305f.tar.gz pfsense-packages-12d41a2bb0219463ead733614a0ca41b0e7b305f.tar.bz2 pfsense-packages-12d41a2bb0219463ead733614a0ca41b0e7b305f.zip |
sarg - include some no-cache header info to reports
Diffstat (limited to 'config/sarg/sarg_frame.php')
-rwxr-xr-x | config/sarg/sarg_frame.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/sarg/sarg_frame.php b/config/sarg/sarg_frame.php index 5838e36b..c73b720a 100755 --- a/config/sarg/sarg_frame.php +++ b/config/sarg/sarg_frame.php @@ -47,6 +47,8 @@ if (file_exists("/usr/local/www/sarg-reports/".$url)) $replace[1]='img src="/sarg-reports'.$prefix.'/$1'; $pattern[2]='@img src="([.a-z/]+)/(\w+\.\w+)@'; $replace[2]='img src="/sarg-reports'.$prefix.'/$1/$2'; + $pattern[3]='/<head>/'; + $replace[3]='<head><META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">'; print preg_replace($pattern,$replace,$report); } else{ |