Any progress on
http://issues.apache.org/bugzilla/show_bug.cgi?id=41230 ??
It seems that stuff like the Ubuntu automatic mirror checker is
hitting this, at least the symptoms match perfectly.
A quick perusal of mod_cache.c and cache_storage.c indeed shows that
cache_select() tries to revalidate even though it's a head request,
and that fits badly with the behaviour in cache_save_filter().
Would the correct fix be to check for r->header_only in
cache_select(), or are there even more funky stuff going on? You
don't want the cached object to be removed just because you got a
HEAD request when it really isn't stale but just in need of
revalidation. Ideally the HEAD request would cause the object to be
revalidated if possible, but we can live with head requests just
doing fallback without touching the cache.
I can whip up a patch for it, but I suspect that you guys are more
clued on the deep magic involved :)
In any case, we'd really appreciate a fix, and we'd really like to see
it go into httpd 2.2.5 (even though we'll most likely apply it to our
own build as soon as the fix is available). It's a rather obscure bug
that we assume is the reason for a fair share of "it didn't work for a
while"-bugreports when people are running apt-get update and whatnot.
/Nikke
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Niklas Edmundsson, Admin @ {acc,hpc2n}.umu.se | [EMAIL PROTECTED]
---------------------------------------------------------------------------
Sam: "Beer, Norm?". Norm: "Have I gotten that predictable? Good."
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=