Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGS-8085] Use filtered value when sending cache control headers #45

Merged
merged 4 commits into from
May 15, 2024

Conversation

jazzsequence
Copy link
Contributor

@jazzsequence jazzsequence commented May 15, 2024

Reported in community Slack by @brianperondi

Filtered cache max-age values update in the admin and everywhere except in the cache control header that is sent.

This PR adds the filter to the value saved in get_cache_control_header_value which determines the value sent to the cache-control header.

@jazzsequence jazzsequence requested a review from a team as a code owner May 15, 2024 17:48
@jazzsequence jazzsequence changed the title [BUG] Use filtered value when sending cache control headers [BUGS-8085] Use filtered value when sending cache control headers May 15, 2024
tests/phpunit/test-page-cache.php Outdated Show resolved Hide resolved
tests/phpunit/test-page-cache.php Show resolved Hide resolved
@jazzsequence jazzsequence requested a review from pwtyler May 15, 2024 20:44
Copy link
Member

@pwtyler pwtyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not gonna bikeshed on it

@jazzsequence jazzsequence merged commit e8b3c51 into main May 15, 2024
7 checks passed
@jazzsequence jazzsequence deleted the bug-default_ttl-cache-control-header branch May 15, 2024 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants