Skip to content

Commit

Permalink
feat: disable cache for index.html (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelDemey authored Nov 15, 2024
1 parent 707dc9c commit cc5ff38
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,12 @@ server {
location / {
try_files $uri $uri/ /index.html;
}

location = /index.html {
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
add_header Pragma "no-cache";
add_header Expires "0";
etag off; # Optionnel pour éviter la génération d'une ETag
}
}

0 comments on commit cc5ff38

Please sign in to comment.