Issue #2960808 by mfb: Disable brotli compression of pre-compressed CSS and JS
parent
221ec16f7c
commit
511b1b69df
|
@ -167,9 +167,9 @@ AddEncoding gzip svgz
|
||||||
RewriteCond %{REQUEST_FILENAME}\.gz -s
|
RewriteCond %{REQUEST_FILENAME}\.gz -s
|
||||||
RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
|
RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
|
||||||
|
|
||||||
# Serve correct content types, and prevent mod_deflate double gzip.
|
# Serve correct content types, and prevent double compression.
|
||||||
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
|
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1,E=no-brotli:1]
|
||||||
RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]
|
RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1,E=no-brotli:1]
|
||||||
|
|
||||||
<FilesMatch "(\.js\.gz|\.css\.gz)$">
|
<FilesMatch "(\.js\.gz|\.css\.gz)$">
|
||||||
# Serve correct encoding type.
|
# Serve correct encoding type.
|
||||||
|
|
|
@ -167,9 +167,9 @@ AddEncoding gzip svgz
|
||||||
RewriteCond %{REQUEST_FILENAME}\.gz -s
|
RewriteCond %{REQUEST_FILENAME}\.gz -s
|
||||||
RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
|
RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
|
||||||
|
|
||||||
# Serve correct content types, and prevent mod_deflate double gzip.
|
# Serve correct content types, and prevent double compression.
|
||||||
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
|
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1,E=no-brotli:1]
|
||||||
RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]
|
RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1,E=no-brotli:1]
|
||||||
|
|
||||||
<FilesMatch "(\.js\.gz|\.css\.gz)$">
|
<FilesMatch "(\.js\.gz|\.css\.gz)$">
|
||||||
# Serve correct encoding type.
|
# Serve correct encoding type.
|
||||||
|
|
Loading…
Reference in New Issue