Skip to content

Commit

Permalink
2773: Add no-cache directive
Browse files Browse the repository at this point in the history
  • Loading branch information
turegjorup committed Oct 23, 2024
1 parent 848321c commit 972c357
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions infrastructure/itkdev/etc/confd/templates/default.conf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ server {
server_name localhost;
root /var/www/html;

add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
add_header Pragma "no-cache";
add_header Expires "0";

location {{ getenv "APP_SCREEN_CLIENT_PATH" "/" }} {
rewrite ^{{ getenv "APP_SCREEN_CLIENT_PATH" "/" }}(.*) /$1 break;
index index.html;
autoindex off;

add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
add_header Pragma "no-cache";
add_header Expires "0";

try_files $uri $uri/ =404;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ server {
server_name localhost;
root /var/www/html;

add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
add_header Pragma "no-cache";
add_header Expires "0";

location {{ getenv "APP_SCREEN_CLIENT_PATH" "/" }} {
rewrite ^{{ getenv "APP_SCREEN_CLIENT_PATH" "/" }}(.*) /$1 break;
index index.html;
autoindex off;

add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
add_header Pragma "no-cache";
add_header Expires "0";

try_files $uri $uri/ =404;
}

Expand Down

0 comments on commit 972c357

Please sign in to comment.