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'); header('Expires: ' . gmdate('D, d M Y H:i:s', time() - 600) . ' GMT');
} }
} }
else { #else {
header("Cache-control: no-cache"); # header("Cache-control: no-cache");
header('Expires: ' . gmdate('D, d M Y H:i:s', time() - 600) . ' GMT'); # header('Expires: ' . gmdate('D, d M Y H:i:s', time() - 600) . ' GMT');
} #}
usort($this->blocks, "blockcmp"); usort($this->blocks, "blockcmp");
$this->add_auto_html_headers(); $this->add_auto_html_headers();
$layout = new Layout(); $layout = new Layout();