Last night I spent several hours implementing different ways to gzip my css and js resources for my website. Solutions include modifying .htaccess, using a php script to do it, combining php script/ .htaccess/ mod_rewrite, gzipping on the client/ addtype to .htaccess. The solutions went from just deflating on the server, all the way to php scripts that combined, minimised, cached and deflated -just move your files over to the web server and the rest is taken care of.
There are some really great solutions out there, but none worked for me when it came to deflating stuff. It seems gzipped items, whilst delivered to the browser, are delivered empty. It's definitely due to my host provider's configuration although they say you can gzip php files, so may be there's away.
Over the next few weeks I'll try some different ideas and see if I can get these resources deflated. Until then I'll stick with minimisation using YUIcompressor on the development client.
No comments:
Post a Comment