Feature/Gameloop enhancements (#17)
Reviewed-on: #17 Co-authored-by: Juan Sebastian Montoya <juansmm@outlook.com> Co-committed-by: Juan Sebastian Montoya <juansmm@outlook.com>
This commit is contained in:
parent
77bd5bb395
commit
323f0be900
15 changed files with 1629 additions and 37 deletions
21
nginx.conf
21
nginx.conf
|
|
@ -9,6 +9,27 @@ server {
|
|||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
# Prevent caching of JavaScript files and version.json
|
||||
location ~* \.(js|mjs)$ {
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
add_header Pragma "no-cache";
|
||||
add_header Expires "0";
|
||||
add_header Vary "Accept-Encoding";
|
||||
}
|
||||
|
||||
location = /version.json {
|
||||
add_header Cache-Control "no-cache, no-store, must-revalidate";
|
||||
add_header Pragma "no-cache";
|
||||
add_header Expires "0";
|
||||
}
|
||||
|
||||
# Prevent caching of HTML
|
||||
location ~* \.html$ {
|
||||
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