Problem/Motivation
Currently MaxAgeCheck doesn't handle when http_cache_control module is enabled and overrides cache.page.max_age.
Proposed resolution
Extend the current check to cover http_cache_control.
Remaining tasks
Add related code changes to MaxAgeCheck class.
Issue fork purge-3424019
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
junkunczComment #4
junkunczComment #5
roderikCode looks good to me.
Approach looks good to me: as far as I understand, Purge is explicitly meant to cover "shared caches", so whenever s-maxage header is present it can ignore cache.page.max_age.
Tested: warning disappears from the status report when it shouldn't be there.
The change in logic isn't big so I don't think this needs test coverage?
Comment #6
japerryHmm I think a more elegant option here would be to throw an event, allowing the max_age variable to be changed. What if other modules have opinions here?
Comment #7
o'briatSee also Cache Max Age warning text