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 bypass header now also prevents an already cached response from being returned #407

Merged
merged 2 commits into from
Aug 9, 2022

Conversation

fgilio
Copy link
Contributor

@fgilio fgilio commented Aug 8, 2022

Follow up from #406

The previous implementation had a bug by which responsecache would return a previously cached response, even if the request had valid bypass headers.

I'm a bit concern that this refactor might cause a breaking change if someone is already using the requestHasCacheBypassHeader method from BaseCacheProfile, since I removed it. I think the current implementation is simpler and more clear, but I'm of course open to adding it back.

@freekmurze freekmurze merged commit b9b5486 into spatie:main Aug 9, 2022
@freekmurze
Copy link
Member

Thanks!

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