<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<div><br></div><div>I have a similar experience, where prefetch seems to poison the cache with negative responses.</div><div><br></div><div>This is a good read; <a href="https://unbound.docs.nlnetlabs.nl/en/latest/topics/core/serve-stale.html">https://unbound.docs.nlnetlabs.nl/en/latest/topics/core/serve-stale.html</a></div><div><br></div><div>Can any one clarify a parameter combination which allows immediate cache responses, and which tells prefetch to always ignore negative responses?</div><div><br></div><div>I wonder if taking the advice of the above article (and being mindful of this <a href="https://github.com/NLnetLabs/unbound/issues/533">https://github.com/NLnetLabs/unbound/issues/533</a> it is possible to get this working). Just can’t figure out how to force prefetch to ignore negative responses.</div><div><br></div><div>Please share your results :)</div><div>Andy.</div><div><br></div><div><div dir="ltr"><br><blockquote type="cite">On 31 Jul 2024, at 20:33, sir izake via Unbound-users <unbound-users@lists.nlnetlabs.nl> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hi <div>I have installed unbound version: 1.20.0 on a FreeBSD 14 server. This was working fine until the server lost internet connectivity to the upstream internet provider. Prior to this the average cache hit rate on the server was 99.0% with only 1% recursive replies.</div><div>Part of my unbound.conf file is shown below</div><div><br></div><pre id="gmail-codecell0"><font face="arial, sans-serif">server:
prefetch: yes
serve-expired: yes</font></pre><pre id="gmail-codecell0"><font face="arial, sans-serif"># serve-expired-ttl: 0<br></font></pre><pre id="gmail-codecell0"><font face="arial, sans-serif"> # serve-expired-ttl-reset: no</font><br></pre><pre id="gmail-codecell0"><font face="arial, sans-serif">After loss of internet average cache hit rate has reduced to 14% whiles recursive queries is showing 86% (still internet is not restored)</font></pre><pre id="gmail-codecell0"><font face="arial, sans-serif">My expectation is </font></pre><pre id="gmail-codecell0"><font face="arial, sans-serif">Caching server should continue to serve expired and keep the cache hit rate high because the serve-expired-ttl is default </font></pre><pre id="gmail-codecell0"><font face="arial, sans-serif">(meaning it should continue serving cached content until upstream is restored).</font></pre><pre id="gmail-codecell0"><font face="arial, sans-serif">My observation is the opposite. Is there anything I am missing? How can i ensure that the caching server will continue serving cache data several days after upstream</font></pre><pre id="gmail-codecell0"><font face="arial, sans-serif">internet is lost</font></pre><pre id="gmail-codecell0"><font face="arial, sans-serif">Regards</font></pre><pre id="gmail-codecell0"><font face="arial, sans-serif">Isaac </font></pre><pre id="gmail-codecell0"><font face="arial, sans-serif"><br></font></pre><pre id="gmail-codecell0"><br></pre><pre id="gmail-codecell0"><span style="font-family:Arial,Helvetica,sans-serif"><br></span></pre></div>
</div></blockquote></div></body></html>