I just want to share information that in Unbound version : 1.25 there are new changes about cache. so dietpi unbound need to fine tune accordingly. as existing dietpi default configuration is neither fit in optimize settings
so i guess in dietpi either we have to go in any of these two options
server:
prefetch: yes
serve-expired: yes
serve-expired-ttl: 86400 # one day, in seconds (default)
serve-expired-client-timeout: 0 # for version 1.23.0 and latter
or
server:
serve-expired: yes
serve-expired-ttl: 86400 # one day, in seconds (default)
serve-expired-client-timeout: 1800 # 1.8 seconds, in milliseconds (default since 1.23.0)
this time in dietpi prefetch: yes which contradict with serve-expired-client-timeout: 1800(default value in unbound), this must be 0 if unbound work as prior or if it is 1800 than prfetch must be no.