Skip to content

Commit

Permalink
Merge pull request #1051 from nscuro/backport-pr-1050
Browse files Browse the repository at this point in the history
Backport: Fix caching issues upon upgrade
  • Loading branch information
nscuro authored Oct 9, 2024
2 parents e49a4e9 + 4509e44 commit cc5ca36
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 cc5ca36

Please sign in to comment.