|
iluvatar -> Web Optimization - How to gZip js & css files? (8/23/2008 10:40:38 AM)
|
I'm building a web site at work and YSlow is giving me a list of things to do to help it run faster, one of those being to compress the files being served. Conceptually, that makes perfect sense. Trouble is, I can't figure out how to do it. It seems like every web site I find that discusses it has a different and incomplete description of the process. Some guys manually gzip the files themselves, and configure the .htaccess file to direct the server to the gz or js files, depending on whether the browser can handle it. Some guys configure the server to gzip on the fly. Some tell the server to gzip on the fly, but cache it the first time in case it's requested again before the file is changed. Some guys perform their compression with a php script. [sm=icon_smile_yikes.gif][sm=icon_smile_yikes.gif][sm=icon_smile_yikes.gif] Help, please. If anybody would like the URL to see what I'm doing, PM. Since it's a semi-commercial site and there's a bit of profanity in some of the text, I'll refrain from posting it outright. -Dan.
|
|
|
|