[squid-users] R: squid stores multiple copies of identical ETags
Alex Rousskov
rousskov at measurement-factory.com
Tue Jun 30 14:16:20 UTC 2020
On 6/30/20 5:10 AM, Tabacchiera, Stefano wrote:
> So I’m assuming that only one object on disk (the last one retrieved) is
> the object referenced as “active” by squid, all the rest being trashable.
>
> Since the client is forcing a “no-cache” header, squid does what the
> client is asking for, and every time it stores the object on disk.
>
> I’m also assuming that IF another client asked the same object without
> the “no-cache” header, squid would serve the latest cached object on disk.
>
> If I’m right so far, squid never “overwrites” the old copy of an object
> on disk. Instead, it stores a new one, marking it as “active”,
Yes, the above matches my understanding (for some definition of "last
one", "overwrites", and "active"). The actual situation is a bit more
nuanced (e.g., Squid could be storing and using multiple copies of the
same resource concurrently, even though any new request will never see
more than one copy), but those low-level details may not matter to your
investigation.
> and let the deletion task to (a)ufs threads.
I cannot confirm or deny this part -- I do not know whether garbage
collection is delegated to aufs thread(s) -- but it sounds plausible.
HTH,
Alex.
More information about the squid-users
mailing list