Skip to content

Set Cache-Control to no-store on paths containing %2F/%5C/%2E - #2018

Open
svpernova09 wants to merge 1 commit into
php:masterfrom
svpernova09:cdn-cache-poisoning-workaround
Open

Set Cache-Control to no-store on paths containing %2F/%5C/%2E#2018
svpernova09 wants to merge 1 commit into
php:masterfrom
svpernova09:cdn-cache-poisoning-workaround

Conversation

@svpernova09

Copy link
Copy Markdown
Contributor

We currently have a CDN issue that can poison our caches because of how the CDN creates cache keys from paths, resulting in / on www.php.net being cached as a redirect.

This patch catches those requests and sets Cache-Control: no-store header so they won't be cached, but other legitimate redirects or 404s will be.

Once this lands and is tested, we can remove the current workaround edge rules, which set cache time to 0 on all 301, 302, and 404 response codes.

I have opened a support ticket with Bunny to address the issue.

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.

1 participant