Skip to content

Commit

Permalink
Merge pull request #1050 from nscuro/issue-860
Browse files Browse the repository at this point in the history
Fix caching issues upon upgrade
  • Loading branch information
nscuro authored Oct 9, 2024
2 parents 4fdb56e + e0e9aad commit bd1cd0c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ server {
index index.html;
try_files $uri $uri/ /index.html;

location ~ (config\.json|index\.html)$ {
add_header Cache-Control "max-age=0, no-cache, no-store, must-revalidate";
add_header Pragma "no-cache";
add_header Expires 0;
}

sub_filter '<base href=/' '<base href=${BASE_PATH}';
sub_filter_once on;
}
Expand All @@ -16,4 +22,4 @@ server {
location = /50x.html {
root /usr/share/nginx/html;
}
}
}

0 comments on commit bd1cd0c

Please sign in to comment.