Safari (and Google Chrome) does not work with a compressed file if the extension is .gz
To support gzip archives in Safari and Chrome, copy and compress .css and .js files to gzip and rename their extension .gz to .jgz (for example: before - one style.css file in the directory after - two files, style.css and style.css.jgz to the directory)
And added this code to your .htaccess file:
AddEncoding gzip .jgz RewriteCond %{HTTP:Accept-encoding} gzip # RewriteCond %{HTTP_USER_AGENT} !Safari RewriteCond %{HTTP_USER_AGENT} !Konqueror RewriteCond %{REQUEST_FILENAME}.jgz -f RewriteRule ^(.*)$ $1.jgz [QSA,L] <IfModule mod_headers.c> Header append Vary User-Agent <FilesMatch .*\.js.jgz$> ForceType text/javascript Header append Vary Accept-Encoding Header set Content-Encoding: gzip Header set Cache-control: private </FilesMatch> <FilesMatch .*\.css.jgz$> ForceType text/css Header append Vary Accept-Encoding Header set Content-Encoding: gzip Header set Cache-control: private </FilesMatch> </IfModule>
For example megaburg.ru Tested - works with Safari, Chrome, Opera and Firefox 8)
source share