diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2025-06-19 18:08:44 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2025-06-19 18:08:45 +0200 |
commit | 4b6cfcac9042593240e465c3deb1a6482a449607 (patch) | |
tree | 67032c12853964e7a2fd215a18cdb427091a42f1 /files | |
parent | e7a669945b5e6873712bdc75677182e492814675 (diff) |
nginx: Only set brotli_static=on for .css, .js and .svg assets.
(We don't want to enable it on font files.)
Diffstat (limited to 'files')
-rw-r--r-- | files/etc/nginx/sites-available/webmap | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/files/etc/nginx/sites-available/webmap b/files/etc/nginx/sites-available/webmap index 731255c..121dada 100644 --- a/files/etc/nginx/sites-available/webmap +++ b/files/etc/nginx/sites-available/webmap @@ -65,8 +65,10 @@ server { location ^~ /assets/ { expires 7d; - brotli_static on; try_files $uri =404; + location ~ "\.(css|js|svg)$" { + brotli_static on; + } } location ^~ /tiles/ { expires 30m; |