Manual alternative to mod_deflate
Posted
by Bobby Jack
on Stack Overflow
See other posts from Stack Overflow
or by Bobby Jack
Published on 2010-03-08T17:51:19Z
Indexed on
2010/03/15
10:49 UTC
Read the original article
Hit count: 348
Say I don't have mod_deflate compiled into apache, and I don't feel like recompiling right now. What are the downsides to a manual approach, e.g. something like:
AddEncoding x-gzip .gz
RewriteCond %{HTTP_ACCEPT_ENCODING} gzip
RewriteRule ^/css/styles.css$ /css/styles.css.gz
(Note: I'm aware that the specifics of that RewriteCond need to be tweaked slightly)
© Stack Overflow or respective owner