Conditional GETs

Dag-Erling Smørgrav des at linpro.no
Sun Jul 29 15:51:21 CEST 2007


Ricardo Newbery <ric at digitalmarbles.com> writes:
> On Jul 29, 2007, at 2:10 AM, Dag-Erling Smørgrav wrote:
>> Ricardo Newbery <ric at digitalmarbles.com> writes:
>>> Since Varnish respects the maxage controls, this implies that when
>>> the next request comes in after expiry it will generate a
>>> conditional request (if Last-Modified is set) to refresh it's cache.
>>> Correct?
>> No, at present it will generate an unconditional request because the
>> expired version will already have been removed from the cache.
> What happens when a client sends a conditional request (either INM or
> IMS) and the content is not available in the Varnish cache?  I assume
> that Varnish will just relay the original conditional request through
> to the backend.  But then what happens when the backend responds with
> a 304?  I'm guessing Varnish won't cache a response until a non-304
> is returned.  Correct?

"No, at present it will generate an unconditional request"

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-misc mailing list