Skip to content

Commit 972c357

Browse files
committed
2773: Add no-cache directive
1 parent 848321c commit 972c357

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ server {
33
server_name localhost;
44
root /var/www/html;
55

6+
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
7+
add_header Pragma "no-cache";
8+
add_header Expires "0";
9+
610
location {{ getenv "APP_SCREEN_CLIENT_PATH" "/" }} {
711
rewrite ^{{ getenv "APP_SCREEN_CLIENT_PATH" "/" }}(.*) /$1 break;
812
index index.html;
913
autoindex off;
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 $uri/ =404;
1616
}
1717

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ server {
33
server_name localhost;
44
root /var/www/html;
55

6+
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
7+
add_header Pragma "no-cache";
8+
add_header Expires "0";
9+
610
location {{ getenv "APP_SCREEN_CLIENT_PATH" "/" }} {
711
rewrite ^{{ getenv "APP_SCREEN_CLIENT_PATH" "/" }}(.*) /$1 break;
812
index index.html;
913
autoindex off;
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 $uri/ =404;
1616
}
1717

0 commit comments

Comments
 (0)