2 ms·
I have a static site, so I gzipped every page on my site, and set up this Apache configuration: RewriteEngine on RewriteCond %{HTTP:Accept-Encoding} g
by js2 10y ago
I have a static site, so I gzipped every page on my site, and set up this Apache configuration:
RewriteEngine on
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [L]
This tells Apache “hey, always send gzipped replies no matter what!!”.
I don't think so. The first RewriteCond is checking for the presence of an "Accept-Encoding: gzip" header (and the second that the file exists in gzip'ed form).