Skip to content

Commit

Permalink
Merge pull request #482 from bipuladh/fix-cache
Browse files Browse the repository at this point in the history
Update Nginx cache configuration
  • Loading branch information
openshift-merge-robot authored Oct 11, 2022
2 parents fbd3546 + 4dc4c5f commit 9f1aa92
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions default.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css max;
application/javascript epoch;
}

server {
listen 9001 ssl;
listen [::]:9001 ssl;
Expand All @@ -21,5 +14,9 @@ server {
root /usr/share/nginx/html;
}
ssi on;
expires $expires;
add_header Last-Modified $date_gmt;
add_header Cache-Control 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
if_modified_since off;
expires off;
etag off;
}

0 comments on commit 9f1aa92

Please sign in to comment.