forked from cvat-ai/cvat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't cache index.html (cvat-ai#4277)
- Loading branch information
Andrey Zhavoronkov
authored
Feb 3, 2022
1 parent
29f14a8
commit f0b2a75
Showing
3 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
server { | ||
root /usr/share/nginx/html; | ||
# Any route that doesn't have a file extension (e.g. /devices) | ||
|
||
location / { | ||
# Any route that doesn't exist on the server (e.g. /devices) | ||
try_files $uri $uri/ /index.html; | ||
add_header Cache-Control: "no-cache, no-store, must-revalidate"; | ||
add_header Pragma: "no-cache"; | ||
add_header Expires: 0; | ||
} | ||
|
||
location /assets { | ||
expires 1y; | ||
add_header Cache-Control "public"; | ||
access_log off; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters