Add script compression (GZIP)
-
Hy long time no see !
I have one question, is it possible to add gzip compression for all scripts (CSS/JS) to your mod_mime :
<IfModule mod_mime.c>
<FilesMatch “\.gz$”>
ForceType text/html
</FilesMatch>
FileETag None
AddEncoding gzip .gz
AddType text/html .gz
<filesMatch “\.(html|gz)$”>
Header set Vary “Accept-Encoding, Cookie”
Header set Cache-Control “max-age=5, must-revalidate”
</filesMatch>
</IfModule>Thanks in advance !
The topic ‘Add script compression (GZIP)’ is closed to new replies.