lammert

msg:4114896 | 8:38 am on Apr 13, 2010 (gmt 0) |
There are some older browsers which had problems accepting compressed content if it wasn't HTML. Compressing CSS or JavaScript files caused problems on these browsers. Do you compress all files, or only the HTML pages?
|
colshine

msg:4114905 | 8:52 am on Apr 13, 2010 (gmt 0) |
We're using mod_deflate to compress everything except images: Here's the apache configuration:
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary Header append Vary User-Agent env=!dont-vary
|
lammert

msg:4115342 | 8:06 pm on Apr 13, 2010 (gmt 0) |
The easiest way you could do is to add one of the two following lines:
BrowserMatch Safari gzip-only-text/html or
BrowserMatch Safari no-gzip and then restart the httpd server. If the first line works, it is some problem with the compression of JavaScript or CSS files. If only the second line works Safari chokes on the plain HTML files. You should know that this expression simply searches for the string "Safari" in the browser User Agent string. Google Chrome also has "Safari" in the User Agent line and compression will therefore also be disabled in that browser.
|
colshine

msg:4115657 | 11:55 am on Apr 14, 2010 (gmt 0) |
Thanks - both lines work.
|
|