Please clarify this weird If-Modified-Since header passed by IE9
In my ASP.NET 4.0 web app, I’ve got a generic handler (.ashx) that serves images stored in the DB. In the interest of efficiency, I’m handling some caching-related headers and passing cache information.
I’m getting DateTime parse errors moderately frequently from trying to parse the If-Modified-Since header contents, usually from IE9. Turns out it’s sending something like this:
Mon, 28 Nov 2011 16:34:52 GMT; length=8799
I’m handling that by using a regular expression to strip out the last part. But I’m curious: what length is it referring to, and what use is it? Is it the size of the cached data for the requested URL?
According to an old post on the Squid proxy mailing list:
I’m guessing that IE adapted this extension at some point and have left it in.