[mod_python] meets_conditions does not seem to work

sliderw hotmail sliderw at hotmail.com
Tue Nov 21 21:09:15 EST 2006

I followed the documentation of meets_conditions and wrote the following 
handler, but it doesn't work. 200 OK is always returned, never 304 Not 

def handler(req):
    req.headers_out['ETag'] = '"12345"'
    req.headers_out['Last-Modified'] = 'Wed, 22 Nov 2006 01:00:00 GMT'
    req.headers_out['Expires'] = 'Fri, 13 Feb 2009 01:00:00 GMT'

    status = req.meets_conditions()
    if status != apache.OK:
        return status


    return apache.OK

Versions used: Apache 2.2.2, mod_python 3.2.8

Any idea?

Get free, personalized commercial-free online radio with MSN Radio powered 
by Pandora http://radio.msn.com/?icid=T002MSN03A07001

More information about the Mod_python mailing list