vary cookie only with CACHE_HTTP
This commit is contained in:
parent
0e25c82fc5
commit
7211b0a30b
@ -196,8 +196,8 @@ class Page {
|
||||
|
||||
switch($this->mode) {
|
||||
case "page":
|
||||
header("Vary: Cookie, Accept-Encoding");
|
||||
if(CACHE_HTTP) {
|
||||
header("Vary: Cookie, Accept-Encoding");
|
||||
if($user->is_anonymous() && $_SERVER["REQUEST_METHOD"] == "GET") {
|
||||
header("Cache-control: public, max-age=600");
|
||||
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 600) . ' GMT');
|
||||
|
Loading…
x
Reference in New Issue
Block a user