Ghost/ghost/core/test/regression/api/content
Naz 8cbf913582 Increased Vary granularity for versioned requests
refs https://github.com/TryGhost/Toolbox/issues/425
refs https://github.com/TryGhost/Toolbox/issues/280

- The versioned API responses vary based on requested version (passed in request's 'accept-version' header). shared caches that sit between Ghost's origin server and the browser would be putting responses with same Vary into the same caching bucket, which is incorrect.
- This change makes response's Vary more granular and tells caching mechanisms to take 'Accept-Version' request header into account when caching.
- Informative read on the topic - https://www.fastly.com/blog/getting-most-out-vary-fastly
2022-09-28 14:48:43 +08:00
..
authors.test.js Changed Content API caching to public 2022-09-26 14:54:50 +08:00
pages.test.js Changed Content API caching to public 2022-09-26 14:54:50 +08:00
posts.test.js Increased Vary granularity for versioned requests 2022-09-28 14:48:43 +08:00
tags.test.js Changed Content API caching to public 2022-09-26 14:54:50 +08:00
utils.js Added comment property to posts in Content API 2022-07-28 14:55:53 +01:00