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

Experience protection does not cache static assets in non-live environments #9207

Open
kirrrk opened this issue Sep 5, 2024 · 1 comment
Assignees
Labels
Topic: CDN Issue or PR relates to the Global CDN Type: Fix Content Issue or PR to resolve incorrect information in the docs

Comments

@kirrrk
Copy link

kirrrk commented Sep 5, 2024

source/content/guides/global-cdn/02-experience-protection.md
https://docs.pantheon.io/guides/global-cdn/experience-protection

Expected behavior

  • Some customers have expected experience protection to work in non-live environments and have attempted to test it by setting the environments to maintenance mode.

Actual behavior

  • The platform sets a no-cache and revalidate cache-control headers on static assets in non-live environments. This prevents static assets from being cached, so experience protection does not work as expected (pages will not render properly).

Suggested Resolution

Dev and Multidev environments always set an HTTP header to cache-control: no-cache, must-revalidate so that changes to CSS and other assets are always reloaded as developers update them.

Additional information

@stevector stevector added Topic: CDN Issue or PR relates to the Global CDN Type: Fix Content Issue or PR to resolve incorrect information in the docs labels Sep 5, 2024
@stevector
Copy link
Contributor

@rachelwhitton, if you need more info, please book co-working time with an SME to write the PR together.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: CDN Issue or PR relates to the Global CDN Type: Fix Content Issue or PR to resolve incorrect information in the docs
Projects
None yet
Development

No branches or pull requests

3 participants