[CMF-checkins] CVS: CMF/CMFCore - utils.py:1.43

Chris McDonough cvs-admin at zope.org
Sat Nov 1 21:18:29 EST 2003


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv6586

Modified Files:
	utils.py 
Log Message:
Add an additional explanatory header to responses returned when the caching policy manager sets headers.


=== CMF/CMFCore/utils.py 1.42 => 1.43 ===
--- CMF/CMFCore/utils.py:1.42	Sat Jun 28 12:31:20 2003
+++ CMF/CMFCore/utils.py	Sat Nov  1 21:18:29 2003
@@ -301,6 +301,10 @@
             RESPONSE = REQUEST['RESPONSE']
             for key, value in headers:
                 RESPONSE.setHeader(key, value)
+            if headers:
+                RESPONSE.setHeader('X-Cache-Headers-Set-By',
+                                   'CachingPolicyManager: %s' %
+                                   '/'.join(manager.getPhysicalPath()))
 
 #
 #   Base classes for tools




More information about the CMF-checkins mailing list