httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel <dferra...@gmail.com>
Subject Re: [users@httpd] Pre-compressed content questions
Date Wed, 18 Nov 2015 17:28:49 GMT
that just says set mime type and specified value for env var but do not
redirect, hence the "-"

If in doubt with rewrite flags you can check:
http://httpd.apache.org/docs/current/rewrite/flags.html

El mié., 18 nov. 2015 a las 18:17, Rose, John B (<jbrose@utk.edu>) escribió:

> Looking at the pre-compressed content config here …
>
> https://httpd.apache.org/docs/2.4/mod/mod_deflate.html#precompressed
>
> So the idea is to create gzip versions of your css, js, etc. and Apache
> will recognize their existence and send the gzip version instead?
>
> So we can have both whatever.css and whatever.css.gzip in the directory
> and Apache with this config will know to grab whatever.css.gzip if it
> exists?
>
> What exactly is this doing?
>
> # Serve correct content types, and prevent mod_deflate double gzip.
>     RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
>     RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]
>
> Thanks
>
>
>

Mime
View raw message