web/httpcache.py
changeset 10411 4ee15441f2eb
parent 10305 937deb71a681
parent 10348 b9bb4296133d
child 10849 79066409fdcf
equal deleted inserted replaced
10410:eb681a030699 10411:4ee15441f2eb
    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)