Skip to content

Commit

Permalink
set cache control only for index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Mar 13, 2024
1 parent 94325e5 commit 43c5bf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ server {
location / {
root /usr/share/nginx/html;
try_files $uri /index.html;
}

location = /index.html {
add_header 'Cache-Control' 'no-cache' always;
}

Expand Down

0 comments on commit 43c5bf6

Please sign in to comment.