explicit no-cache stops varnish from caching

This commit is contained in:
Shish 2012-01-26 16:53:59 +00:00
parent 52bbb36af4
commit 717024d464

View File

@ -208,10 +208,10 @@ class Page {
header('Expires: ' . gmdate('D, d M Y H:i:s', time() - 600) . ' GMT');
}
}
else {
header("Cache-control: no-cache");
header('Expires: ' . gmdate('D, d M Y H:i:s', time() - 600) . ' GMT');
}
#else {
# header("Cache-control: no-cache");
# header('Expires: ' . gmdate('D, d M Y H:i:s', time() - 600) . ' GMT');
#}
usort($this->blocks, "blockcmp");
$this->add_auto_html_headers();
$layout = new Layout();