puppet: Set aggressive caching headers on immutable webpack files.

A partial fix for #3470.
This commit is contained in:
Alex Vandiver 2021-03-02 15:38:21 -08:00 committed by Tim Abbott
parent 9c8fa3930f
commit 189e86e18e
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ location /static/ {
# Set a nonexistent path, so we just serve the nice Django 404 page.
error_page 404 /django_static_404.html;
# These files are hashed and thus immutable; cache them aggressively.
location /static/webpack-bundles {
add_header Cache-Control "public, max-age=31536000, immutable";
}
}
# Send longpoll requests to Tornado