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

Add a prefetch option to Optimistic DNS cache #3993

Closed
jumpsmm7 opened this issue Dec 23, 2021 · 2 comments
Closed

Add a prefetch option to Optimistic DNS cache #3993

jumpsmm7 opened this issue Dec 23, 2021 · 2 comments
Labels
duplicate Duplicate or merged issues.

Comments

@jumpsmm7
Copy link
Contributor

jumpsmm7 commented Dec 23, 2021

I saw in the last release
Optimistic DNS cache (#2145)
To reduce latency you may make AdGuard Home respond from the cache even when the stored entry is expired, while trying to refresh them at the same timearrows_counterclockwise This checkbox is located in Settings → DNS settings → DNS cache configuration and it's not ticked by default. Responses made from DNS cache are marked with a special label in the Query log.

The incorporation of serving expired has been added for, in the same spirit of Optimistic DNS cache, would it be possible to add a prefetch policy ( if there is not one already incorporated that is?) to reduce how often entries are served as expired?

@agneevX
Copy link
Contributor

agneevX commented Dec 23, 2021

I think it's better to serve expired entries with a very low TTL, and refresh the entry automatically in the background rather than prefetch.

However, it does make sense for popular items to be auto-refreshed on expiration.

@ainar-g
Copy link
Contributor

ainar-g commented Dec 23, 2021

Duplicate of #1259

@ainar-g ainar-g marked this as a duplicate of #1259 Dec 23, 2021
@ainar-g ainar-g closed this as completed Dec 23, 2021
@ainar-g ainar-g added the duplicate Duplicate or merged issues. label Dec 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate or merged issues.
Projects
None yet
Development

No branches or pull requests

3 participants