Mailing List Archive

[Bug 57813] Rewrite 'pre-compressed content' recipe using 2.4 metaphors
https://bz.apache.org/bugzilla/show_bug.cgi?id=57813

--- Comment #5 from Rich Bowen <rbowen@apache.org> ---
Luca, since this patch was provided, and I apparently managed to ignore it for
7 years, the example in the doc has been modified (combine js and css into a
single regex) so that the patch doesn't apply cleanly. However, I've reworked
the patch slightly and am attempting to apply it in trunk and 2.4.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org
[Bug 57813] Rewrite 'pre-compressed content' recipe using 2.4 metaphors [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=57813

--- Comment #6 from Rich Bowen <rbowen@apache.org> ---
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org