mirror of
https://github.com/e107inc/e107.git
synced 2025-08-03 13:17:24 +02:00
Modified Vary header for when gzip is available.
This commit is contained in:
@@ -374,7 +374,7 @@ if(varset($pref['compress_output'],false) && $server_support == true && $browser
|
|||||||
$page = gzencode($page, $level);
|
$page = gzencode($page, $level);
|
||||||
header("Content-Encoding: gzip", true);
|
header("Content-Encoding: gzip", true);
|
||||||
header("Content-Length: ".strlen($page), true);
|
header("Content-Length: ".strlen($page), true);
|
||||||
|
header('Vary: Accept-Encoding');
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -388,10 +388,11 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
header("Content-Length: ".strlen($page), true);
|
header("Content-Length: ".strlen($page), true);
|
||||||
|
header('Vary: Accept');
|
||||||
}
|
}
|
||||||
|
|
||||||
header("X-Powered-By: e107", true); // no less secure than e107-specific html.
|
header("X-Powered-By: e107", true); // no less secure than e107-specific html.
|
||||||
header('Vary: Accept');
|
|
||||||
|
|
||||||
// should come after the Etag header
|
// should come after the Etag header
|
||||||
if ($canCache && isset($_SERVER['HTTP_IF_NONE_MATCH']))
|
if ($canCache && isset($_SERVER['HTTP_IF_NONE_MATCH']))
|
||||||
|
Reference in New Issue
Block a user