Forum Tools
Forums |  Register |  Login |  My Profile |  Inbox |  Address Book |  My Subscription |  My Forums 

Photo Gallery |  Member List |  Search |  Calendars |  FAQ |  TOS |  Disclaimer |  Ticket List |  Log Out | 

Web Optimization - How to gZip js & css files?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [Fun] >> Computers & Technology >> Web Optimization - How to gZip js & css files?
Jump to post #:
Page: [1]
Login
Message << Older Topic   Newer Topic >>
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.
Post #: 1
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.
Post #: 2
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.
Post #: 3
Page:   [1]
All Forums >> [Fun] >> Computers & Technology >> Web Optimization - How to gZip js & css files?
Jump to post #:
Page: [1]
Jump to:





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



  Forum Tools
Forums |  Register |  Login |  My Profile |  Inbox |  Address Book |  My Subscription |  My Forums 

Photo Gallery |  Member List |  Search |  Calendars |  FAQ |  TOS |  Disclaimer |  Ticket List |  Log Out | 
Forum Software © ASPPlayground.NET Advanced Edition 2.5 ANSI