We've currently setup GZIP compression using htaccess deflate command. I wondered if anybody would kindly help us understand the following...
Are there any potential problems using htaccess to deflate, like additional server strain in deflating?, And is this suitable for a site with 1,200 daily page views which pulls in several JS / CSS files?
We've considered hosting GZIP files alongside our content and creating a script to update zip files should the unzipped file change. However a simple dump of the following code seems to be much easier providing it doesn't bring its own issues...
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE font/ttf font/otf
Thanks in advance for any advice.
Dave