Skip to content

Commit

Permalink
fixed cache control (#884)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmyMi authored Feb 7, 2022
1 parent cd4d313 commit 117d400
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dist/includes/cache.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
# web app
location / {
add_header Cache-Control "no-store, no-cache, public, must-revalidate, proxy-revalidate, max-age=0";
add_header Pragma "no-cache";
etag off;
if_modified_since off;
expires -1;
}

location ~* \.(?:css|js)$ {
add_header Cache-Control "no-cache, public, must-revalidate, proxy-revalidate";
location ~* \.(?:css|js|json)$ {
add_header Cache-Control "no-store, no-cache, public, must-revalidate, proxy-revalidate, max-age=0";
add_header Pragma "no-cache";
etag off;
if_modified_since off;
expires -1;
}

location ~* \.(?:jpg|jpeg|gif|png|ico|xml|webp)$ {
Expand Down

0 comments on commit 117d400

Please sign in to comment.