Skip to content

Commit

Permalink
Merge pull request #312 from headwaymaps/mkirk/cache-more
Browse files Browse the repository at this point in the history
cache more assets
  • Loading branch information
michaelkirk authored Jan 31, 2024
2 parents cb86012 + cfdf98e commit 34726fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion services/frontend/nginx.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ http {
}

location /tileserver/ {
expires 1h;
proxy_pass ${HEADWAY_TILESERVER_URL}/;
}

Expand All @@ -57,7 +58,7 @@ http {
add_header Cache-Control "no-cache, no-store, must-revalidate";
}

location ~* \.(?:css|js|jpg|svg)$ {
location ~* \.(?:css|js|jpg|svg|woff|woff2)$ {
expires 30d;
# We aggressively cache assets, since our asset URLs contain a
# cache-buster
Expand Down

0 comments on commit 34726fd

Please sign in to comment.