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

TTL zero cacheresponse #1181

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

TTL zero cacheresponse #1181

wants to merge 2 commits into from

Conversation

wcawijngaards
Copy link
Member

Responses in the last second of their cache TTL, get an extra second. That makes the TTL not 0, since they are from cache and can be cached by the client.

The implementation favors speed, the time and cache status are not compared for every record, but once for the response.

Only cache responses receive the treatment, not authoritative responses, and also not upstream responses that could contain TTL 0 from upstream.

  get an extra second. That makes the TTL not 0, since they are from
  cache and can be cached by the client.
@wcawijngaards wcawijngaards self-assigned this Nov 11, 2024
@wcawijngaards wcawijngaards requested a review from gthess November 11, 2024 16:13
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.

1 participant