Skip to content

Commit

Permalink
Frontend nginx should almost always return index.html (#2390)
Browse files Browse the repository at this point in the history
* Frontend nginx should almost always return index.html

### What's done:
 * Fixed nginx.conf
  • Loading branch information
sanyavertolet authored Jul 31, 2023
1 parent 6a943a3 commit a68c45d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions save-frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -154,16 +154,6 @@ http {
# Directory where static files are located
root /workspace/static;

location / {
# Specify files sent to client if specific file not requested (e.g.
# GET www.example.com/). NGINX sends first existing file in the list.
index index.html index.htm Default.htm;
add_header Cache-Control "private; no-store";
etag off;
add_header Last-Modified "";
if_modified_since off;
}

location ~* \.(html)$ {
add_header Cache-Control "private; no-store";
etag off;
Expand All @@ -187,5 +177,15 @@ http {
deny all;
return 404;
}

location / {
# Specify files sent to client if specific file not requested (e.g.
# GET www.example.com/). NGINX sends first existing file in the list.
index /index.html index.html index.htm Default.htm;
add_header Cache-Control "private; no-store";
etag off;
add_header Last-Modified "";
if_modified_since off;
}
}
}

0 comments on commit a68c45d

Please sign in to comment.