mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #8027 from nextcloud/nginx-immuatable-cache
Add documentation for cache control immutable
This commit is contained in:
commit
7873bd1804
@ -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?$ {
|
||||
|
||||
@ -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?$ {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user