summaryrefslogtreecommitdiff
path: root/htetc
diff options
context:
space:
mode:
Diffstat (limited to 'htetc')
-rw-r--r--htetc/global.asa4
-rw-r--r--htetc/handler.pl5
2 files changed, 8 insertions, 1 deletions
diff --git a/htetc/global.asa b/htetc/global.asa
index c4b4380d6..cf6b0f679 100644
--- a/htetc/global.asa
+++ b/htetc/global.asa
@@ -47,6 +47,10 @@ use FS::svc_www;
use FS::type_pkgs;
sub Script_OnStart {
+ $Response->AddHeader('Pragma' => 'no-cache');
+ $Response->AddHeader('Cache-control' => 'no-cache');
+ $Response->AddHeader('Expires' => 0);
+
$cgi = new CGI;
&cgisuidsetup($cgi);
$p = popurl(2);
diff --git a/htetc/handler.pl b/htetc/handler.pl
index f80c79e65..5be19c443 100644
--- a/htetc/handler.pl
+++ b/htetc/handler.pl
@@ -109,7 +109,10 @@ sub handler
$r->content_type('text/html');
#eorar
- # @FS::CGI::headers or some other way to set no-cache headers!!!
+ my $headers = $r->headers_out;
+ $headers->{'Pragma'} = $headers->{'Cache-control'} = 'no-cache';
+ #$r->no_cache(1);
+ $headers->{'Expires'} = '0';
my $status = $ah->handle_request($r);