[Bug 57813] Rewrite 'pre-compressed content' recipe using 2.4 metaphors

[email protected]
Newsgroups gmane.comp.apache.documentation
Message-ID <[email protected]/bugzilla/>
https://bz.apache.org/bugzilla/show_bug.cgi?id=57813

--- Comment #6 from Rich Bowen <[email protected]> ---
In particular:

-    RewriteCond "%{HTTP:Accept-encoding}" "gzip"
-    RewriteCond "%{REQUEST_FILENAME}\.gz" -s
-    RewriteRule "^(.*)\.(css|js)"         "$1\.$2\.gz" [QSA]
+    &lt;If "%{HTTP:Accept-encoding} =~ /gzip/ &amp;&amp; -s
'%{REQUEST_FILENAME}\.gz'"&gt;
+        RewriteRule "^(.*)\.(css|js)"  "$1\.$2\.gz" [QSA]
+    &lt;/If&gt;


The (proposed) new core directive hasn't materialized in that time, and, as per
Eric's comment, this is not really improving things much - just swapping three
lines with three other lines. So ... not sure whether this is really worth
doing or not. If anything, the Rewrite version is possibly a little more
readable. What do y'all think?

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.