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

[5.x] Add cache-control header to cached content #11430

Open
wants to merge 5 commits into
base: 5.x
Choose a base branch
from

Conversation

indykoning
Copy link
Contributor

Implements: statamic/ideas#1309

Half and full caching strategies will get these improvements if these are pages that can be cached.

This PR will add cache-control public headers for pages that can be/will be/have been cached or have been served from cache if the webserver wasn't configured properly or query params did not match.

It can improve experienced speed and reduce server load by using local copies of statically cached content. And if combined with a properly configured CDN which supports caching pages can reduce server load as the CDN will serve the page and occasionally update it's cache.

(If you're using a CDN in-between you might not even need the full strategy anymore)

@duncanmcclean duncanmcclean changed the title Add cache-control header to cached content [5.x] Add cache-control header to cached content Feb 7, 2025
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