explicit no-cache stops varnish from caching
This commit is contained in:
parent
52bbb36af4
commit
717024d464
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user