Skip to content

Commit

Permalink
fix: no cache for nginx server
Browse files Browse the repository at this point in the history
  • Loading branch information
shdn-ibm committed Nov 12, 2021
1 parent 137fed0 commit 50f93f5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ server {
ssl_certificate_key /var/serving-cert/tls.key;
location / {
root /opt/app-root/src;
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache';
if_modified_since off;
expires off;
etag off;
}
location /compatibility/ {
root /opt/app-root/src;
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache';
if_modified_since off;
expires off;
etag off;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
Expand Down

0 comments on commit 50f93f5

Please sign in to comment.