Avatar of alex_wareing
alex_wareing
 asked on

Explain GZIP to a newbie

Exactly as the title suggests. I have a site that uses many CSS and JS files, I use mootools and the file is 64kb on my disk but the site says it can be gzipped to 18kb. What is this all about? I have tried a few things I read on the internet and i'm not any closer to getting it. Do i somehow zip the file and upload it and then link to mootools.js.gzip? Or is it more complex than that?
Scripting LanguagesJavaScript

Avatar of undefined
Last Comment
alex_wareing

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mike_Carroll

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
alex_wareing

ASKER
I seem to have gzip on my server but i'm having some problems getting it working, I have added this into the .htaccess:

AddOutputFilterByType DEFLATE text/html text/plain text/xml
<Files *.js>
SetOutputFilter DEFLATE
</Files>

Doesn't seem to have made a difference?
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23