PDA

View Full Version : How to use a Gzip file as a link


cryoffalcon
20th May 12, 08:21 PM
I just Gzipped my css file and now I am not able to understand how to use it as an external css file as it has a .gz at the end instead of .css Here is the link files.cryoffalcon.com/bloghuts/Compressed/BlogHuts%20COMPRESSED%20CSS.css.gz

chrishirst
21st May 12, 05:25 AM
You can't.

If you want to use GZip on your documents to reduce download overhead and, theoretically at least, improve performance, you have to enable gzip at the server level not at file level, so the compression is applied after the document has been requested and before the data stream transmission begins.