Closed SukkaW closed 1 month ago
@SukkaW But
To avoid overloading AdGuard's server/CDN, I've implemented a cache based on
ETag
Do you have many clients? One user usually is not a problem for servers) Also our filters support diff-update https://filters.adtidy.org/extension/chromium/patches/18/18-s-1729265794-3600.patch https://github.com/AdguardTeam/FiltersCompiler/issues/192
Hello. Unfortunately it is not possible right now due to some filters update implementation reasons.
Prerequisites
Problem description
I regularly fetch AdGuard's filter from
filters.adtidy.org
. To avoid overloading AdGuard's server/CDN, I've implemented a cache based onETag
. However, I've noticed thatfilters.adtidy.org
sometimes returns HTTP 200 instead of HTTP 304, even when the returnedETag
matches the sentIf-None-Match
:This behavior cannot be reproduced consistently, though:
Proposed solution
Check the implementation of AdGuard's registry server and the CDN provider (CDN77) to make sure always returns HTTP 304 when the server
ETag
matchesIf-None-Match
.Privacy