better cron job handling for spectre

This commit is contained in:
JT Smith 2006-04-18 22:23:15 +00:00
parent 10a1289bac
commit 5548da29a3
4 changed files with 133 additions and 31 deletions

View file

@ -169,7 +169,7 @@ sub sendHeader {
$self->session->request->status(301);
} else {
$self->session->request->content_type($self->{_http}{mimetype} || "text/html");
$self->session->request->set_last_modified($self->{_http}{lastModified} || time());
# $self->session->request->set_last_modified($self->{_http}{lastModified} || time());
if ($self->session->setting->get("preventProxyCache")) {
$self->session->request->headers_out->set(Expires => "-1d");
}