diff --git a/nginx.conf b/nginx.conf index 4c9e1c6..0d578b5 100644 --- a/nginx.conf +++ b/nginx.conf @@ -41,7 +41,8 @@ http { add_header Referrer-Policy "same-origin"; add_header Strict-Transport-Security "max-age=5184000"; - location ~* ^/(_matrix|stats|js|scss|img|css|fonts|webfonts|\.well-known/matrix)+? { + + location ~* ^/(_matrix|stats|\.well-known/matrix)+? { access_log off; } @@ -50,8 +51,9 @@ http { return 200 "PONG"; } - location ~* \.(png|jpg|gif|svg|txt|xml)$ { + location ~* \.(png|jpg|gif|svg|txt|css|js|xml|eot|ttf|woff2|woff)$ { access_log off; + add_header Cache-Control "public, max-age=0, must-revalidate"; } location = /favicon.ico {