[web/httpcache] send weak ETags
There's no way we can provide a strong validator in general (especially
considering how ETags are generated by the current EtagHTTPCacheManager
and EntityHTTPCacheManager). So mark our entity-tags as weak.
--- a/cubicweb/web/httpcache.py Fri Mar 04 12:17:58 2016 +0100
+++ b/cubicweb/web/httpcache.py Wed Mar 09 19:00:09 2016 +0100
@@ -67,7 +67,7 @@
def set_headers(self):
req = self.req
try:
- req.set_header('Etag', '"%s"' % self.etag())
+ req.set_header('Etag', 'W/"%s"' % self.etag())
except NoEtag:
super(EtagHTTPCacheManager, self).set_headers()
return