Skip to content

Commit e0d56ae

Browse files
committed
2773: Add no-cache directive
1 parent a091da7 commit e0d56ae

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

infrastructure/itkdev/etc/confd/templates/default.conf.tmpl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,21 @@ server {
44
root /var/www/html;
55
index index.html index.htm;
66

7+
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
8+
add_header Pragma "no-cache";
9+
add_header Expires "0";
10+
711
# Any route containing a file extension (e.g. /devicesfile.js)
812
location ~* ^{{ getenv "APP_ADMIN_CLIENT_PATH" "" }}/(.+\..+)$ {
913
rewrite ^{{ getenv "APP_ADMIN_CLIENT_PATH" "/" }}(.*) /$1 break;
1014

11-
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
12-
add_header Pragma "no-cache";
13-
add_header Expires "0";
14-
1515
try_files $uri =404;
1616
}
1717

1818
location ~* ^{{ getenv "APP_ADMIN_CLIENT_PATH" "/" }} {
1919
rewrite ^{{ getenv "APP_ADMIN_CLIENT_PATH" "/" }}(.*) /$1 break;
2020
autoindex off;
2121

22-
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
23-
add_header Pragma "no-cache";
24-
add_header Expires "0";
25-
2622
try_files $uri /index.html;
2723
}
2824

infrastructure/os2display/etc/confd/templates/default.conf.tmpl

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,21 @@ server {
44
root /var/www/html;
55
index index.html index.htm;
66

7+
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
8+
add_header Pragma "no-cache";
9+
add_header Expires "0";
10+
711
# Any route containing a file extension (e.g. /devicesfile.js)
812
location ~* ^{{ getenv "APP_ADMIN_CLIENT_PATH" "" }}/(.+\..+)$ {
913
rewrite ^{{ getenv "APP_ADMIN_CLIENT_PATH" "/" }}(.*) /$1 break;
1014

11-
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
12-
add_header Pragma "no-cache";
13-
add_header Expires "0";
14-
1515
try_files $uri =404;
1616
}
1717

1818
location ~* ^{{ getenv "APP_ADMIN_CLIENT_PATH" "/" }} {
1919
rewrite ^{{ getenv "APP_ADMIN_CLIENT_PATH" "/" }}(.*) /$1 break;
2020
autoindex off;
2121

22-
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
23-
add_header Pragma "no-cache";
24-
add_header Expires "0";
25-
2622
try_files $uri /index.html;
2723
}
2824

0 commit comments

Comments
 (0)