Skip to content

Commit

Permalink
Set cache expiration so that if the server's frontend implementation …
Browse files Browse the repository at this point in the history
…is updated (#809)
  • Loading branch information
johnthagen committed Nov 13, 2020
1 parent 04279da commit 0e34593
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions nginx/templates/thecombine.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ server {
}

location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
# Set cache expiration so that if the server's frontend implementation is updated,
# clients will automatically pull in a fresh version at the beginning of the next day.
expires 12h;
add_header Cache-Control "public, no-transform"
}

error_page 500 502 503 504 /50x.html;
Expand Down

0 comments on commit 0e34593

Please sign in to comment.