From af3cecb2e18bd8e8e55eca56b23926d0314fe7e3 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Thu, 2 Feb 2023 09:58:09 +0100 Subject: [PATCH] https://github.com/the-djmaze/snappymail/issues/895#issuecomment-1412891229 --- assets/.htaccess | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/.htaccess b/assets/.htaccess index 14887e100..765213af9 100644 --- a/assets/.htaccess +++ b/assets/.htaccess @@ -4,20 +4,20 @@ RewriteEngine On RewriteCond %{HTTP:Accept-encoding} br - RewriteCond "%{REQUEST_FILENAME}\.br" -s - RewriteRule "^(.+\.js)$" "$1\.br" [L,T=application/javascript,QSA] + RewriteCond "%{REQUEST_FILENAME}.br" -s + RewriteRule "^(.+\.js)$" "%{REQUEST_URI}.br" [L,T=application/javascript,QSA] RewriteCond %{HTTP:Accept-encoding} gzip - RewriteCond "%{REQUEST_FILENAME}\.gz" -s - RewriteRule "^(.+\.js)$" "$1\.gz" [L,T=application/javascript,QSA] + RewriteCond "%{REQUEST_FILENAME}.gz" -s + RewriteRule "^(.+\.js)$" "%{REQUEST_URI}.gz" [L,T=application/javascript,QSA] RewriteCond %{HTTP:Accept-encoding} br - RewriteCond "%{REQUEST_FILENAME}\.br" -s - RewriteRule "^(.+\.css)$" "$1\.br" [L,T=text/css,QSA] + RewriteCond "%{REQUEST_FILENAME}.br" -s + RewriteRule "^(.+\.css)$" "%{REQUEST_URI}.br" [L,T=text/css,QSA] RewriteCond %{HTTP:Accept-encoding} gzip - RewriteCond "%{REQUEST_FILENAME}\.gz" -s - RewriteRule "^(.+\.css)$" "$1\.gz" [L,T=text/css,QSA] + RewriteCond "%{REQUEST_FILENAME}.gz" -s + RewriteRule "^(.+\.css)$" "%{REQUEST_URI}.gz" [L,T=text/css,QSA] SetEnv no-gzip 1