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

[SITE-2506] Add filter to adjust cache max age for specific paths #67

Open
pwtyler opened this issue Oct 16, 2024 · 1 comment
Open

Comments

@pwtyler
Copy link
Member

pwtyler commented Oct 16, 2024

Use case: adjust the cache max-age for REST API endpoints, but not the main website, without adjusting the global default.

Potential approach using rest_post_dispatch today is described in the ChatGPT conversation linked in this support topic, this could be simplified with a filter that fires after the default value is set.

@pwtyler pwtyler changed the title Add filter to adjust cache max age for specific paths [SITE-2506] Add filter to adjust cache max age for specific paths Oct 17, 2024
@pwtyler
Copy link
Member Author

pwtyler commented Dec 19, 2024

Discovered the rest_post_dispatch option is already documented on docs.pantheon.io

https://docs.pantheon.io/cache-control

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

No branches or pull requests

1 participant