[Zope-CVS] CVS: Products/CompositePage - rawfile.py:1.3

Shane Hathaway shane at zope.com
Sat Apr 3 11:35:33 EST 2004


Update of /cvs-repository/Products/CompositePage
In directory cvs.zope.org:/tmp/cvs-serv18865

Modified Files:
	rawfile.py 
Log Message:
Always cache for one hour.  Shift-reload works for development.


=== Products/CompositePage/rawfile.py 1.2 => 1.3 ===
--- Products/CompositePage/rawfile.py:1.2	Mon Dec 22 12:28:10 2003
+++ Products/CompositePage/rawfile.py	Sat Apr  3 11:35:32 2004
@@ -38,13 +38,7 @@
             _prefix = package_home(_prefix)
         path = os.path.join(_prefix, path)
         self.path = path
-        if Globals.DevelopmentMode:
-            # In development mode, a shorter time is handy
-            max_age = 60 # One minute
-        else:
-            # A longer time reduces latency in production mode
-            max_age = 3600 # One hour
-        self.cch = 'public,max-age=%d' % max_age
+        self.cch = 'public, max-age=3600'  # One hour
 
         file = open(path, 'rb')
         data = file.read()




More information about the Zope-CVS mailing list