Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
puppet: Set aggressive caching headers on immutable webpack files.
Alex Vandiver189e86e18e20
diff --git a/puppet/zulip/files/nginx/zulip-include-frontend/app b/puppet/zulip/files/nginx/zulip-include-frontend/appindex f4bf8fe22e3..8aa79bcdd55 100644--- a/puppet/zulip/files/nginx/zulip-include-frontend/app+++ b/puppet/zulip/files/nginx/zulip-include-frontend/app@@ -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