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

CACHE-11937: add compat flag to support cache rules overrides #3342

Conversation

yj7o5
Copy link
Contributor

@yj7o5 yj7o5 commented Jan 15, 2025

Adding a new flag to support overriding cache rules via request.cf object. Currently, if a resource is fetched via the fetch API and have cache settings such as cacheEverything: true specified in the 'cf' object, while there is also cache rules defined against that resource, the cache settings in request cf object isn't respected. Cache team is working on fixing this behavior to give precedence over to request cf object first and then to cache rules, however, we are hiding this behavior behind a compatibility flag until we're confident the change works as intended for everyone.

@yj7o5 yj7o5 requested review from a team as code owners January 15, 2025 19:38
@yj7o5 yj7o5 requested review from dom96 and jasnell January 15, 2025 19:38
Copy link

github-actions bot commented Jan 15, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@yj7o5
Copy link
Contributor Author

yj7o5 commented Jan 15, 2025

recheck

@yj7o5
Copy link
Contributor Author

yj7o5 commented Jan 15, 2025

@jasnell how do I sign the CLA? It doesn't give me any option here in the PR

@yj7o5
Copy link
Contributor Author

yj7o5 commented Jan 15, 2025

I have read the CLA Document and I hereby sign the CLA

github-actions bot added a commit that referenced this pull request Jan 15, 2025
@yj7o5
Copy link
Contributor Author

yj7o5 commented Jan 15, 2025

recheck

@yj7o5
Copy link
Contributor Author

yj7o5 commented Jan 15, 2025

@jasnell how do I sign the CLA? It doesn't give me any option here in the PR

nvm I'm so dumb, if only I had RTFM (#3342 (comment))

@yj7o5 yj7o5 force-pushed the yawar/CACHE-11937_add-compat-flag-for-request-cf-overrides-cache-rules branch from 9cb199b to 0e43df7 Compare January 16, 2025 17:21
@yj7o5
Copy link
Contributor Author

yj7o5 commented Jan 21, 2025

recheck

@danlapid danlapid merged commit 18b213b into cloudflare:main Jan 21, 2025
11 of 12 checks passed
@yj7o5 yj7o5 deleted the yawar/CACHE-11937_add-compat-flag-for-request-cf-overrides-cache-rules branch January 21, 2025 22:58
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.

4 participants