Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add documentation for cache control immutable
  • Loading branch information
CarlSchwan committed Feb 14, 2022
commit b30299c32d01e26158fff6d90291cb7311b4c4e0
4 changes: 4 additions & 0 deletions admin_manual/installation/nginx-root.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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?$ {
Expand Down
4 changes: 4 additions & 0 deletions admin_manual/installation/nginx-subdir.conf.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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?$ {
Expand Down