Add documentation for cache control immutable

See https://github.com/nextcloud/server/pull/31141/files

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan
2022-02-14 15:55:48 +01:00
parent b8d7e002e0
commit b30299c32d
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?$ {