mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 00:17:03 +03:00
parent
7f8707c4c0
commit
bd35521f41
1 changed files with 43 additions and 41 deletions
|
|
@ -1,50 +1,52 @@
|
||||||
<IfModule mod_headers.c>
|
<IfModule !LiteSpeed>
|
||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_headers.c>
|
||||||
RewriteEngine On
|
<IfModule mod_rewrite.c>
|
||||||
|
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)$" "$1\.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)$" "$1\.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)$" "$1\.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)$" "$1\.gz" [L,T=text/css,QSA]
|
||||||
|
|
||||||
<FilesMatch "\.(js|css)\.br$">
|
<FilesMatch "\.(js|css)\.br$">
|
||||||
SetEnv no-gzip 1
|
SetEnv no-gzip 1
|
||||||
SetEnv no-brotli 1
|
SetEnv no-brotli 1
|
||||||
# Serve correct encoding type.
|
# Serve correct encoding type.
|
||||||
Header append Content-Encoding br
|
Header append Content-Encoding br
|
||||||
# Force proxies to cache brotli &
|
# Force proxies to cache brotli &
|
||||||
# non-brotli css/js files separately.
|
# non-brotli css/js files separately.
|
||||||
Header append Vary Accept-Encoding
|
Header append Vary Accept-Encoding
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
<FilesMatch "\.(js|css)\.gz$">
|
<FilesMatch "\.(js|css)\.gz$">
|
||||||
SetEnv no-gzip 1
|
SetEnv no-gzip 1
|
||||||
SetEnv no-brotli 1
|
SetEnv no-brotli 1
|
||||||
# Serve correct encoding type.
|
# Serve correct encoding type.
|
||||||
Header append Content-Encoding gzip
|
Header append Content-Encoding gzip
|
||||||
# Force proxies to cache gzipped &
|
# Force proxies to cache gzipped &
|
||||||
# non-gzipped css/js files separately.
|
# non-gzipped css/js files separately.
|
||||||
Header append Vary Accept-Encoding
|
Header append Vary Accept-Encoding
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
<FilesMatch "\.js\.(br|gz)$">
|
<FilesMatch "\.js\.(br|gz)$">
|
||||||
Header set Content-Type "application/javascript; charset=utf-8"
|
Header set Content-Type "application/javascript; charset=utf-8"
|
||||||
ForceType application/javascript
|
ForceType application/javascript
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
<FilesMatch "\.css\.(br|gz)$">
|
<FilesMatch "\.css\.(br|gz)$">
|
||||||
Header set Content-Type "text/css; charset=utf-8"
|
Header set Content-Type "text/css; charset=utf-8"
|
||||||
ForceType text/css
|
ForceType text/css
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
</IfModule>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue