equal
deleted
inserted
replaced
69 req.set_header('Etag', '"%s"' % self.etag()) |
69 req.set_header('Etag', '"%s"' % self.etag()) |
70 except NoEtag: |
70 except NoEtag: |
71 self.req.set_header('Cache-control', 'no-cache') |
71 self.req.set_header('Cache-control', 'no-cache') |
72 return |
72 return |
73 req.set_header('Cache-control', |
73 req.set_header('Cache-control', |
74 'must-revalidate;max-age=%s' % self.max_age()) |
74 'must-revalidate,max-age=%s' % self.max_age()) |
75 mdate = self.last_modified() |
75 mdate = self.last_modified() |
76 # use a timestamp, not a formatted raw header, and let |
76 # use a timestamp, not a formatted raw header, and let |
77 # the front-end correctly generate it |
77 # the front-end correctly generate it |
78 # ("%a, %d %b %Y %H:%M:%S GMT" return localized date that |
78 # ("%a, %d %b %Y %H:%M:%S GMT" return localized date that |
79 # twisted don't parse correctly) |
79 # twisted don't parse correctly) |