Initial React project
This commit is contained in:
@@ -5,6 +5,14 @@ server {
|
||||
root /usr/share/nginx/html;
|
||||
index index.html;
|
||||
|
||||
# Never cache HTML entrypoint so new deploys are picked up immediately
|
||||
location = /index.html {
|
||||
try_files $uri =404;
|
||||
add_header Cache-Control "no-store, no-cache, must-revalidate, max-age=0";
|
||||
add_header Pragma "no-cache";
|
||||
add_header Expires "0";
|
||||
}
|
||||
|
||||
# Static assets
|
||||
location /assets/ {
|
||||
try_files $uri =404;
|
||||
|
||||
Reference in New Issue
Block a user