web/ETagAndIfModSinceInteraction written at 17:52:23; Add Comment
How ETags and If-Modified-Since headers interact
Part of the fun of writing programs that deal with HTTP is decoding things like RFC 2616 to answer somewhat obscure questions about how various things interact. Today's case is the following question:
In the case of
This came up when I threw debugging code into DWiki to see exactly what various people repeatedly pulling my Atom feed without getting bandwidth-efficient 304 responses were sending. One feed reader was sending both headers but making up their own If-Modified-Since instead of just repeating Last-Modified. (DWiki requires an exact match for technical reasons.)
web/MSNbotBinariesProblem written at 01:22:57; Add Comment
MSNbot (still) has problems with binary files
Dating back to our first experiences with msnbot, the MSN Search web crawler, I've known that it was kind of crazy about repeatedly fetching large binary files. Since then, we have pointed this issue out to MSN Search people more than once and switched to using accurate Content-Types. Recently we had a week of MSNbot not refetching those large binaries, so it looked like MSNbot had finally been fixed.
So much for that. Since 7pm Wednesday night, MSNbot has fetched 3.1 gigabytes of various large, unchanging 'application/<definitely not text>' files from us. Highlights of the experience include MSNbot fetching fetching the same 537 megabyte ISO image six times (once less than twenty minutes after the previous fetch).
It is clear that MSNbot simply does not deal correctly with binary files, things served with various 'application/<whatever>' content types. There are a few application/* content types that are appropriate to index (PDFs, for example), but for us MSNbot definitely goes far beyond that.
From things I've heard, it would not surprise me if MSNbot ignores the
content-type and just relies on a hard-coded list of URL extensions to
not crawl. (Presumably things like
This is completely brain-damaged, since extensions on URLs don't
necessarily have anything to do with their content-type. For example,
you will search high and low to find a
I doubt we're the only site experiencing this issue. If you have large binary files on your site, I strongly urge you to check your server logs for similar behavior.
* * *
Atom feeds are available; see the bottom of most pages.