|
Users viewing this topic:
none
|
|
Login | |
|
Web Optimization - How to gZip js & css files? - 8/23/2008 10:40:38 AM
|
|
|
iluvatar
Posts: 1925
Joined: 4/12/2005
Status: online
|
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. 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.
_____________________________
Well, I've been to one world fair, a picnic, and a rodeo, and that's the stupidest thing I ever heard come over a set of earphones.
|
|
|
|
RE: Web Optimization - How to gZip js & css files? - 8/27/2008 11:15:15 PM
|
|
|
davidshq
Posts: 19
Joined: 3/26/2007
Status: offline
|
Well, what sort of underlying web server are you using? Most likely either Microsoft's Internet Information Server (IIS) or Apache. Its easiest to configure compression from the host - rather than on an individual file basis. Dave.
_____________________________
- Dave Mackey. - Informed Networker - Social News for IT Professionals.
|
|
|
|
RE: Web Optimization - How to gZip js & css files? - 8/28/2008 9:42:15 PM
|
|
|
iluvatar
Posts: 1925
Joined: 4/12/2005
Status: online
|
quote:
ORIGINAL: davidshq Well, what sort of underlying web server are you using? Most likely either Microsoft's Internet Information Server (IIS) or Apache. Its easiest to configure compression from the host - rather than on an individual file basis. Dave. Apache 2.2.9 -Dan.
_____________________________
Well, I've been to one world fair, a picnic, and a rodeo, and that's the stupidest thing I ever heard come over a set of earphones.
|
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|