mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-07 15:27:43 +08:00
This commit is contained in:
parent
a7081660f0
commit
af3cecb2e1
1 changed files with 8 additions and 8 deletions
|
@ -4,20 +4,20 @@
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
RewriteCond %{HTTP:Accept-encoding} br
|
RewriteCond %{HTTP:Accept-encoding} br
|
||||||
RewriteCond "%{REQUEST_FILENAME}\.br" -s
|
RewriteCond "%{REQUEST_FILENAME}.br" -s
|
||||||
RewriteRule "^(.+\.js)$" "$1\.br" [L,T=application/javascript,QSA]
|
RewriteRule "^(.+\.js)$" "%{REQUEST_URI}.br" [L,T=application/javascript,QSA]
|
||||||
|
|
||||||
RewriteCond %{HTTP:Accept-encoding} gzip
|
RewriteCond %{HTTP:Accept-encoding} gzip
|
||||||
RewriteCond "%{REQUEST_FILENAME}\.gz" -s
|
RewriteCond "%{REQUEST_FILENAME}.gz" -s
|
||||||
RewriteRule "^(.+\.js)$" "$1\.gz" [L,T=application/javascript,QSA]
|
RewriteRule "^(.+\.js)$" "%{REQUEST_URI}.gz" [L,T=application/javascript,QSA]
|
||||||
|
|
||||||
RewriteCond %{HTTP:Accept-encoding} br
|
RewriteCond %{HTTP:Accept-encoding} br
|
||||||
RewriteCond "%{REQUEST_FILENAME}\.br" -s
|
RewriteCond "%{REQUEST_FILENAME}.br" -s
|
||||||
RewriteRule "^(.+\.css)$" "$1\.br" [L,T=text/css,QSA]
|
RewriteRule "^(.+\.css)$" "%{REQUEST_URI}.br" [L,T=text/css,QSA]
|
||||||
|
|
||||||
RewriteCond %{HTTP:Accept-encoding} gzip
|
RewriteCond %{HTTP:Accept-encoding} gzip
|
||||||
RewriteCond "%{REQUEST_FILENAME}\.gz" -s
|
RewriteCond "%{REQUEST_FILENAME}.gz" -s
|
||||||
RewriteRule "^(.+\.css)$" "$1\.gz" [L,T=text/css,QSA]
|
RewriteRule "^(.+\.css)$" "%{REQUEST_URI}.gz" [L,T=text/css,QSA]
|
||||||
|
|
||||||
<FilesMatch "\.(js|css)\.br$">
|
<FilesMatch "\.(js|css)\.br$">
|
||||||
SetEnv no-gzip 1
|
SetEnv no-gzip 1
|
||||||
|
|
Loading…
Reference in a new issue