[Zope-Checkins] CVS: Zope/lib/python/App - ImageFile.py:1.17

Toby Dickenson tdickenson@geminidataloggers.com
Mon, 15 Apr 2002 10:30:22 -0400


Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv2312/lib/python/App

Modified Files:
	ImageFile.py 
Log Message:
change max-age time to one hour, for consistency with the css

=== Zope/lib/python/App/ImageFile.py 1.16 => 1.17 ===
         self.path=path
         if Globals.DevelopmentMode:
-            # In development mode, shorter is handy
-            max_age = 60
+            # In development mode, a shorter time is handy
+            max_age = 60 # One minute 
         else:
-            # In production mode, longer reduces latency
-            max_age = 600
+            # A longer time reduces latency in production mode
+            max_age = 3600 # One hour
         self.cch = 'public,max-age=%d' % max_age
 
         file=open(path, 'rb')