Skip to content

Commit cc5ca36

Browse files
authored
Merge pull request #1051 from nscuro/backport-pr-1050
Backport: Fix caching issues upon upgrade
2 parents e49a4e9 + 4509e44 commit cc5ca36

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker/etc/nginx/templates/default.conf.template

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ server {
77
index index.html;
88
try_files $uri $uri/ /index.html;
99

10+
location ~ (config\.json|index\.html)$ {
11+
add_header Cache-Control "max-age=0, no-cache, no-store, must-revalidate";
12+
add_header Pragma "no-cache";
13+
add_header Expires 0;
14+
}
15+
1016
sub_filter '<base href=/' '<base href=${BASE_PATH}';
1117
sub_filter_once on;
1218
}
@@ -16,4 +22,4 @@ server {
1622
location = /50x.html {
1723
root /usr/share/nginx/html;
1824
}
19-
}
25+
}

0 commit comments

Comments
 (0)