chore: rrevent caching of version.json and add cache-busting to fetch request
This commit is contained in:
parent
77bd5bb395
commit
7a5a6c6177
2 changed files with 12 additions and 1 deletions
|
|
@ -9,6 +9,13 @@ server {
|
|||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# Prevent caching of version.json
|
||||
location = /version.json {
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
add_header Pragma "no-cache";
|
||||
add_header Expires "0";
|
||||
}
|
||||
|
||||
# Enable gzip compression
|
||||
gzip on;
|
||||
gzip_types text/html text/css application/javascript;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue