diff -r 8a11aeea4d25 -r 3a79fecdd2b4 web/httpcache.py --- a/web/httpcache.py Thu Sep 24 11:06:50 2009 +0200 +++ b/web/httpcache.py Thu Sep 24 20:25:49 2009 +0200 @@ -18,7 +18,7 @@ def __init__(self, view): self.view = view self.req = view._cw - self.cw_rset = view.rset + self.cw_rset = view.cw_rset def set_headers(self): self.req.set_header('Cache-control', 'no-cache') @@ -108,7 +108,7 @@ # XXX check view module's file modification time in dev mod ? ctime = datetime.utcnow() if self.cache_max_age: - mtime = self.req.header_if_modified_since() + mtime = self._cw.header_if_modified_since() if mtime: tdelta = (ctime - mtime) if tdelta.days * 24*60*60 + tdelta.seconds > self.cache_max_age: