Joan,

Thanks so much for this!!

I just added the "AddOutputFilterByType DEFLATE ..." line to my .htaccess file a couple days ago, and wow! what a difference! But, I didn't know bout the whole "Deactivate compression for buggy browsers" part. I will drop that in my .htaccess file tonight.

Thanks again!


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Sep 14, 2007, at 3:45 PM, Joan Piedra wrote:

I've found this to be the easiest and unobstrusive way to gzip my files with a .htaccess file.

<IfModule mod_headers.c>
<IfModule mod_deflate.c>

    # Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript

    # Deactivate compression for buggy browsers
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

</IfModule>
</IfModule>


On 9/14/07, seedy <[EMAIL PROTECTED]> wrote:


I also had the same thing happen.
14kb is only after it has been gzipped by your server.
The version you are downloading has been minified, Its up to you to do the
gzipping.


lukwe wrote:
>
>
> When I go to the GoogleCode page for the minified version it idsplays a 46
> kb file to download;
> seems like the file had been deflated again by the server (?!?).
>
> Is anyone else experiencing this ??!?
>
>
> ciao
>

--
View this message in context: http://www.nabble.com/Downloading-1.2- minified%2C-getting-46kb-instead-of-14kb---%21-- tf4442334s15494.html#a12676468
Sent from the JQuery mailing list archive at Nabble.com.




--
Joan Piedra  ||  Frontend web developer
http://www.justaquit.com/  ||  http://www.joanpiedra.com/

Reply via email to