From: Claudio Sacerdoti Coen Date: Wed, 11 Apr 2001 11:21:06 +0000 (+0000) Subject: Content-Cache, Expires and Pragma added for non-error responses. X-Git-Tag: v0_1_2~20 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=aa78e760b3ebd88c8e8d1a0c73544aedb8724a31;hp=a6e7b3d67704039e6e6bd45beedfa4f7e170a593;p=helm.git Content-Cache, Expires and Pragma added for non-error responses. Should them be there also in case of errors? --- diff --git a/helm/http_getter/http_getter.pl.in b/helm/http_getter/http_getter.pl.in index 5efbd8836..2aa678e9f 100755 --- a/helm/http_getter/http_getter.pl.in +++ b/helm/http_getter/http_getter.pl.in @@ -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); }