[Bug 57813] Rewrite 'pre-compressed content' recipe using 2.4 metaphors
| 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] + <If "%{HTTP:Accept-encoding} =~ /gzip/ && -s '%{REQUEST_FILENAME}\.gz'"> + RewriteRule "^(.*)\.(css|js)" "$1\.$2\.gz" [QSA] + </If> 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.