GZIP

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
Reaction score
13
will the server automatically serve gzipped files instead of the normal ones if the client supports it?

i will have my css and js files gzipped (same name.gzip) and probably will run on IIS 6.0

Otherwise, please explain this to me as if I was 5. I have a hangover...
 
Are you asking if the gzip file will be gunzip'd and parsed on the fly (thus eliminating the need for you to store uncompressed versions) ?

If so, that all depends on your webserver configuration. Possible, but likely not a default feature.
 
...or do you want to enable some form of compression so that the compressed files are transferred to the client for bandwidth and speed purposes? If so, why not use Http Compression? If you're using .NET there are numerous ways of enabling compression for the files when transferred...
 
I don't want to use .net compression as not all of my stuff is in a stupid asp.net solution. I still hand-code most of my own **** using jquery and some form of web service

For loading files to the client I want them to receive the gzipped version of the file instead if their client supports it without having to customize much on the server itself

makes sense?

From what i've read it's not that straightforward though.

And the docs you guys gave I've read

minimal to no config... but once again I see I have to basically rewrite the internet just for IIS to do something relatively cool
 
Ok, I see where you're coming from - do you have access to the server, or is this on a shared host.

(I found a solution for shared hosts, but it uses .Net to accomplish it - although it handles all file types - HttpCompress)
 
I have access to the host but I don't necessarily want to turn on compression for the entire server, only my website. however, it seems like an all or nothing type scenario.

Other than the web service being in .NET, nothing else is.
 
Thanks, will check it out. Otherwise I'm just going to YUI compress everything and make sure expiry is set to basically forever on my css/js files
 
Top
Sign up to the MyBroadband newsletter
X