[jQuery] Re: Minified and Gzip?

2009-02-19 Thread ScottChiefBaker

On Feb 17, 9:55 pm, Ricardo Tomasi ricardob...@gmail.com wrote:
 How are you checking it? The 'Net' tab in Firebug should tell you if
 it's gzipped or not.

I just checked firebug:

Content-Length: 55774
Content-Type: application/x-javascript

What should my apache config look like?


[jQuery] Re: Minified and Gzip?

2009-02-19 Thread Brandon Aaron
Here is what I've added to my Apache Config to support mod_deflate of my
html, css and js. I just dropped this in at the bottom of my httpd.config.
# Create the output filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
## Don't compress for IE5.0
BrowserMatch MSIE 5.0 no-gzip
# Don't compress images, flash, PDFs
SetEnvIfNoCase Request_URI.(?:gif|jpe?g|png|swf|pdf)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary

Hope that helps...

--
Brandon Aaron

On Tue, Feb 17, 2009 at 7:00 PM, ScottChiefBaker scott.ba...@gmail.comwrote:


 How do I setup JQuery to be server Gzipped? Using apache I installed
 mod_deflate and set it up to serve .js files as gzipped, but it
 doesn't seem to be working. Does anyone have any example
 configurations I could steal from?

 - Scott



[jQuery] Re: Minified and Gzip?

2009-02-17 Thread Ricardo Tomasi

How are you checking it? The 'Net' tab in Firebug should tell you if
it's gzipped or not.

On Feb 17, 10:00 pm, ScottChiefBaker scott.ba...@gmail.com wrote:
 How do I setup JQuery to be server Gzipped? Using apache I installed
 mod_deflate and set it up to serve .js files as gzipped, but it
 doesn't seem to be working. Does anyone have any example
 configurations I could steal from?

 - Scott