web/httpcache.py
changeset 5223 6abd6e3599f4
parent 5155 1dea6e0fdfc1
child 5244 5467674ad101
equal deleted inserted replaced
5216:4f4369e63f5e 5223:6abd6e3599f4
    41     * set policy to 'must-revalidate' and expires to the current time to force
    41     * set policy to 'must-revalidate' and expires to the current time to force
    42       revalidation on each request
    42       revalidation on each request
    43     """
    43     """
    44 
    44 
    45     def etag(self):
    45     def etag(self):
       
    46         if self.req.cnx is None:
       
    47             return self.view.__regid__
    46         return self.view.__regid__ + '/' + ','.join(sorted(self.req.user.groups))
    48         return self.view.__regid__ + '/' + ','.join(sorted(self.req.user.groups))
    47 
    49 
    48     def max_age(self):
    50     def max_age(self):
    49         # 0 to actually force revalidation
    51         # 0 to actually force revalidation
    50         return 0
    52         return 0