-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Support configuration of cache-control max-age #7273
Comments
This is an interesting proposition, we're currently in the middle of entirely refactoring and then auditing Ghost's configuration, and so it's a good time to propose changes. I am not sure that a generic max-age config is enough, do you have an idea what configuration options you wanted/needed? |
Yes, more sophisticated cache settings would probably make sense. I'm personally most interested in cache settings for the dynamic, non-admin content like / and posts. Right now I setup some rules in CloudFlare to apply cache settings on a per path basis. |
Could you be a bit more specific, maybe share the CloudFlare rules you're using? |
I simply set 2h TTL for everything except /ghost/* |
I've added this as an item for review in #7488. Going to close this as we don't need both issues open for the same task. It will be reviewed before the end of the alpha phase. |
FWIW, we should think about setting |
I'd also like to be able to set the I purpose this should be a configuration option in
|
Hi,
as of this writing, ghost doesn't seem to support customizing the cache control headers.
It would be great if I could configure that somehow, just in config.js would be fine. This is especially useful since / and the individual posts set max-age=0, which always requires revalidation and might completely disable caching (at least cloudflare with default settings).
The text was updated successfully, but these errors were encountered: