I have a very strange problem with my apache server (v2.2.16 running on debian 6.0.5). I have mod_deflate enabled to serve content gzipped, and in chrome, firefox and ie, it works just fine, no problem. However, in Safari, only partial content is received and unpacked.
Another thing to note: there is an Nginx server in front of the Apache, proxying content - so the request will hit nginx, be proxied to apache, then answer returned to nginx, then it's sent back. However, the Apache server does the gzipping - gzipping has been switched off on the nginx server.
The page is http://www.fastaval.dk/aktiviteter/rollespil/
The same problem presents itself when trying to test the page with W3Cs validator: http://validator.w3.org/check?uri=http%3A%2F%2Fwww.fastaval.dk%2Faktiviteter%2Frollespil%2F&charset=%28detect+automatically%29&doctype=Inline&group=0 This is also broken and suggests that the gzipped content is somehow broken.
However, if I try to just download the gzipped file to manually unpack with gunzip, I get a perfectly valid gzip file. I've tried both using wget and curl - both output a valid file, no problems.
Short of disabling mod_deflate for Safari, how can I troubleshoot this issue? And what might cause this problem?