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

Document WP Engine's Lower Cache Limit #281

Open
rodrigo-arias opened this issue May 4, 2024 · 0 comments
Open

Document WP Engine's Lower Cache Limit #281

rodrigo-arias opened this issue May 4, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation Needs Reproduction

Comments

@rodrigo-arias
Copy link
Contributor

rodrigo-arias commented May 4, 2024

The documentation states that setting a custom max-age per document is possible, which is helpful for 'Settings' or other queries that may not be invalidated properly. However, it appears that WP Engine has certain limitations.

WP Engine support page on Cache Control Headers

  • The X-Cacheable header will be set to YES:[MAX-AGE].000 for any value equal to or greater than 600. For values less than 600, it will be set to SHORT.
  • The Cache-Control header will include max-age=[MAX-AGE], must-revalidate, and the MAX-AGE will be overwritten to 600 for any value lower than that.

While the WP Engine rule seems restrictive and prevents us to not to caching certain documents, mentioning it in the documentation could be beneficial as it might take time to discover and understand this behavior.

@rodrigo-arias rodrigo-arias changed the title Document WP Engine's Lower Cache Limitation Document WP Engine's Lower Cache Limit May 4, 2024
@josephfusco josephfusco added Needs Reproduction documentation Improvements or additions to documentation labels May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation Needs Reproduction
Projects
None yet
Development

No branches or pull requests

2 participants