Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add caching headers for production assets #1087

Merged
merged 1 commit into from
Feb 9, 2023

Conversation

Mr0grog
Copy link
Member

@Mr0grog Mr0grog commented Feb 9, 2023

It turns out we weren't sending any caching headers for assets in production, so they weren't generally getting cached. This adds a 1-day cache for them (most assets are compiled and have hashes in the name, so could be cached forever, but some don't, e.g. robots.txt).

It turns out we weren't sending any caching headers for assets in production, so they weren't generally getting cached. This adds a 1-day cache for them (most assets are compiled and have hashes in the name, so could be cached forever, but some don't, e.g. `robots.txt`).
@Mr0grog Mr0grog merged commit 81f440b into main Feb 9, 2023
@Mr0grog Mr0grog deleted the production-assets-could-use-some-caching branch February 9, 2023 07:19
Mr0grog added a commit that referenced this pull request Feb 9, 2023
Mr0grog added a commit to edgi-govdata-archiving/web-monitoring-ops that referenced this pull request Feb 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant