Vary: Accept-Encoding #11

Open
ghost opened this Issue Apr 9, 2011 · 0 comments

Comments

Projects
None yet
0 participants
@ghost

ghost commented Apr 9, 2011

I Have Change

if (!isset($mimeTypes[$fileType])) debugExit("Unsupported file type ($fileType)");
header("Content-Type: {$mimeTypes[$fileType]}; charset=".$settings['charSet']);

to

if (!isset($mimeTypes[$fileType])) debugExit("Unsupported file type ($fileType)");
header("Content-Type: {$mimeTypes[$fileType]}; charset=".$settings['charSet']);
header("Vary: Accept-Encoding");

For Fix the Issue from
http://gtmetrix.com

"Bugs in some public proxies may lead to compressed versions of your resources being served to users that don't support compression. Specifying the Vary: Accept-Encoding header instructs the proxy to store both a compressed and uncompressed version of the resource."

http://www.andyhuang.net/blog/2010/10/optimizing-smartoptimizer.html
https://code.google.com/p/seotoaster/source/detail?r=674

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment