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 default ttl to 0 when no cache header present #241

Merged
merged 1 commit into from
Nov 19, 2021
Merged

Conversation

ofhouse
Copy link
Member

@ofhouse ofhouse commented Nov 19, 2021

For routes where no Cache-Control header is present, the default TTL is not set to 0 (no cache).
This is especially useful for API-Routes in Next.js that do not add a Cache-Control header by default.

Fixes #236.

@ofhouse ofhouse added this to the v0.11.0 milestone Nov 19, 2021
@ofhouse ofhouse linked an issue Nov 19, 2021 that may be closed by this pull request
@ofhouse ofhouse merged commit 7995833 into v0.11.x Nov 19, 2021
@ofhouse ofhouse deleted the default-ttl branch November 19, 2021 21:40
@ofhouse ofhouse modified the milestones: v0.11.0, Next Iteration Jan 11, 2022
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.

useSWR hook and cache policies
1 participant