]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/http_getter/http_getter.pl.in
Content-Cache, Expires and Pragma added for non-error responses.
[helm.git] / 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);
 }