Ghost/test/unit/frontend/web/middleware
Hannah Wolfe 6e6a4822f2
Updated servePublicFile to honor v= cache keys
- Currently it's assumed that public files are 100% static
- With card assets, we're using it for files that are partially static, but can change between reboots and theme changes
- We already have a system for managing cache busting across theme changes and restarts - the ?v= key that is added via the asset helper
- This was already in place and used, but servePublicFile's internal cache didn't honor this key, and cached for the lifetime of boot
- This small change means that if a ?v= query param is present on a request for a public file, that we pay attention to it. Else we cache as before
2021-11-23 12:49:53 +00:00
..
handle-image-sizes.test.js Moved server/web/site to frontend/web 2021-10-21 19:28:18 +01:00
serve-favicon.test.js Moved server/web/site to frontend/web 2021-10-21 19:28:18 +01:00
serve-public-file.test.js Updated servePublicFile to honor v= cache keys 2021-11-23 12:49:53 +00:00
static-theme.test.js Moved server/web/site to frontend/web 2021-10-21 19:28:18 +01:00