[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPResponse.py:1.63
Brian Lloyd
brian@zope.com
Fri, 14 Jun 2002 11:52:49 -0400
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv6611
Modified Files:
HTTPResponse.py
Log Message:
Fix for collector #429: use vary tag to fix interaction of gzip content
encoding with cache servers.
=== Zope/lib/python/ZPublisher/HTTPResponse.py 1.62 => 1.63 ===
elif force or (REQUEST.get('HTTP_ACCEPT_ENCODING','').find('gzip') != -1):
self.use_HTTP_content_compression = 1
-
+ if not force:
+ self.appendHeader('Vary', 'Accept-Encoding')
return self.use_HTTP_content_compression