Added
- Added a new
ExpireCacheService
class that handles marking cache as expired when the refresh mode is set to expire the cache. - Added a new
cacheControlHeaderExpired
config setting that reduces the max cache age in public reverse proxies to 5 seconds by default for expired pages. - Added a new
defaultCacheControlHeader
config setting that is sent by default if no other cache headers are sent (#580).
Changed
- Cache control headers are now set to the new
cacheControlHeaderExpired
config setting when a cached response is sent for an expired page, meaning that expired cache can now be organically regenerated. - Cached pages are now expired when refreshed via the utility or console commands and when the refresh mode is set to expire the cache.