Hi, I found it useful if the AcceleratedHTTPCacheManager would sent a cache-pragma of type 'no-cache' for authenticated user and objects which should not be cached on authenticated connections. I had configured a apache proxy and without that fix the mod_proxy will always cache objects, regardless if the object should be cached or not ! AcceleratedHTTPCacheManager.py def ZCache_set ... if not anon and self.anonymous_only: # sent a no-cache pragma to the HTTPCache ! expires=rfc1123_date(time.time() - seconds) RESPONSE.setHeader('Cache-Control', 'no-cache') RESPONSE.setHeader('Expires', expires) else: # Set HTTP Expires and Cache-Control headers seconds=self.interval expires=rfc1123_date(time.time() + seconds) RESPONSE.setHeader('Cache-Control', 'max-age=%d' % seconds) RESPONSE.setHeader('Expires', expires) Regards, Dirk
Dirk Datzert wrote:
Hi,
I found it useful if the AcceleratedHTTPCacheManager would sent a cache-pragma of type 'no-cache' for authenticated user and objects which should not be cached on authenticated connections.
I had configured a apache proxy and without that fix the mod_proxy will always cache objects, regardless if the object should be cached or not !
Dirk, Please add this as a feature request (or a bug request, if you think it's a bug) to the Zope collector. http://collector.zope.org/Zope Shane
participants (2)
-
Dirk Datzert -
Shane Hathaway