equal
deleted
inserted
replaced
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 |