Skip to content

Commit

Permalink
Update Nginx cache configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Bipul Adhikari <[email protected]>
  • Loading branch information
bipuladh committed Oct 11, 2022
1 parent fbd3546 commit 4dc4c5f
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 4dc4c5f

Please sign in to comment.