]> matita.cs.unibo.it Git - helm.git/commitdiff
Content-Cache, Expires and Pragma added for non-error responses.
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 11 Apr 2001 11:21:06 +0000 (11:21 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Wed, 11 Apr 2001 11:21:06 +0000 (11:21 +0000)
Should them be there also in case of errors?

helm/http_getter/http_getter.pl.in

index 5efbd8836f4a14112a22bcc0365367282ac7f3fd..2aa678e9f1a3f86be00833fb4f3b56b9a667fb32 100755 (executable)
@@ -607,6 +607,9 @@ sub answer {
    unless ($contype eq "");
  $res->push_header("Content-Encoding" => $contenc)
    unless ($contenc eq "");
+ $res->push_header("Cache-Control" => "no-cache");
+ $res->push_header("Pragma" => "no-cache");
+ $res->push_header("Expires" => "0");
  $c->send_response($res);
 }