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

Set cache-control header #23

Open
AnatoleLucet opened this issue Jan 15, 2021 · 1 comment
Open

Set cache-control header #23

AnatoleLucet opened this issue Jan 15, 2021 · 1 comment

Comments

@AnatoleLucet
Copy link

The current cache-control looks like this on a cached page:

cache-control: private, no-cache, no-store, max-age=0, must-revalidate

It probably shouldn't be private, the max-age should match the ttl, etc... Though this header doesn't seem to be set by next-boost, but it probably should be.

I think it's fine to keep a private, no-cache for a ttl=0 or if no rule is defined for the route.

@MisterJimson
Copy link

I also am interested in this, makes a lot of sense.

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 a pull request may close this issue.

2 participants