edgi-govdata-archiving / web-monitoring-db

An HTTP API for tracking and annotating changes to a set of web pages.
https://api.monitoring.envirodatagov.org/
GNU General Public License v3.0
17 stars 26 forks source link

Add caching headers for production assets #1087

Closed Mr0grog closed 1 year ago

Mr0grog commented 1 year ago

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).