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

Website: Avoid edge-caching conditionally redirected resources #1351

Merged

Conversation

brandonpayton
Copy link
Member

What is this PR doing?

This PR disables edge caching for conditionally redirected resources.

What problem is it solving?

The WP Cloud edge cache seems to avoid caching some redirects. But for conditionally redirected resources like /wordpress.html, the edge cache can cache the resource when not redirected, and after that, PHP is no longer given a chance to conditionally redirect.

How is the problem addressed?

If a resource has conditional redirects, we now explicitly disable caching for that resource.

Testing Instructions

  • Tested manually on playground-dot-wordpress-dot-net.atomicsites.blog

Related to #1197

@brandonpayton brandonpayton added [Type] Bug An existing feature does not function as intended [Aspect] Website [Package][@wp-playground] Website labels Apr 30, 2024
@brandonpayton brandonpayton self-assigned this Apr 30, 2024
@brandonpayton brandonpayton merged commit 5d0c20c into trunk Apr 30, 2024
5 checks passed
@brandonpayton brandonpayton deleted the wp-cloud-avoid-caching-file-with-possible-redirect branch April 30, 2024 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Aspect] Website [Package][@wp-playground] Website [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant