[wp-hackers] Re: [wp-svn] [2579] trunk/wp-blog-header.php: Possible fix for http://mosquito.wordpress.org/view.php?id=1275

Mike Little journalized at gmail.com
Thu May 5 14:20:14 GMT 2005


On 05/05/05, Dougal Campbell <dougal at gunters.org> wrote:
> This logic still isn't complete. It only handles the case where both the
> If-Modified-Since *and* the If-None-Match (ETag) headers are present.
> But the spec allows for a case where only one (either one) of the
> headers is present.
> 
> If only one of them is present, then it must satisfy its condition in
> order to return a 304: either If-Modified-Since is >= the web content's
> modify date, OR the If-None-Match is equal to what the server thinks it
> should be.
> 
> If both are present, then both conditions must be true (which is all
> we're checking right now).
> 
> We need to put back in support for the case where only one of the
> headers are present, or we'll be missing some 304 opportunities, and
> wasting bandwidth.
> 
> --
> Dougal Campbell <dougal at gunters.org>
> http://dougal.gunters.org/

Agreed, that was my conclusion yesterday. I was trying by hand with
telnet and only using if-modified-since. I didn't see a 304 in any of
my tests. I was intending to investigate further but ran out of time.

Mike
-- 
Mike Little
http://zed1.com/journalized/


More information about the wp-hackers mailing list