Skip to content

Commit

Permalink
nginx: add Cache-Control header
Browse files Browse the repository at this point in the history
  • Loading branch information
deer-wmde committed Mar 13, 2024
1 parent 0cc1e5a commit 94325e5
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,6 +21,8 @@ server {
location / {
root /usr/share/nginx/html;
try_files $uri /index.html;

add_header 'Cache-Control' 'no-cache' always;
}

# deny access to .htaccess files, if Apache's document root concurs with nginx's one
Expand Down

0 comments on commit 94325e5

Please sign in to comment.