some personal, more technical – by Thomas Einwaller
In: Web
3 May 2007Last week I configured an apache2 web server for content compression to speed up delivery over a slow connection. The onboard tool apache2 provides for this task is mod_deflate. It is really easy to configure and works great.
I used the configuration as described under “Compress everything except images” and it worked right away. I proved this by clearing the browsers cache and using the Live HTTP headers Firefox Add-on. In the response header fields you can see if content is gziped or not.
After some days users told me that they were not able to vie PDF documents anymore. Their Internet Explorer only displayed blank pages instead of printable PDF documents. It seems like Internet Explorer 6 on Windows 2000 is not able to deal with PDF documents delivered through mod_deflate. So I had to change my configuration from SetOutputFilter DEFLATE to AddOutputFilterByType DEFLATE text/html. I added all the mime types I wanted to get compressed explicitly and PDFÂ worked again.