Merge pull request #8027 from nextcloud/nginx-immuatable-cache

Add documentation for cache control immutable
This commit is contained in:
Carl Schwan
2022-02-15 09:58:41 +01:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -146,6 +146,10 @@ server {
location ~ \.wasm$ {
default_type application/wasm;
}
location ~ \.(?:css|js|svg|gif|png|jpg|ico|wasm|tflite)(\?v=.*)?$ {
add_header Cache-Control "public, max-age=15778463, immutable";
}
}
location ~ \.woff2?$ {

View File

@@ -145,6 +145,10 @@ server {
location ~ \.wasm$ {
default_type application/wasm;
}
location ~ \.(?:css|js|svg|gif|png|jpg|ico|wasm|tflite)(\?v=.*)?$ {
add_header Cache-Control "public, max-age=15778463, immutable";
}
}
location ~ \.woff2?$ {