[cpif] r295 - trunk/frontend-web

svn at argo.es svn at argo.es
Fri Jul 27 02:49:00 CEST 2007


Author: jcea
Date: Fri Jul 27 02:48:58 2007
New Revision: 295

Log:


Modified:
   trunk/frontend-web/url_static.py

Modified: trunk/frontend-web/url_static.py
==============================================================================
--- trunk/frontend-web/url_static.py	(original)
+++ trunk/frontend-web/url_static.py	Fri Jul 27 02:48:58 2007
@@ -24,6 +24,10 @@
       if etag==i.strip() :
         return (304,headers,"")
 
+# Actually, all static objects have an ETag, and that should
+# be used to check object freshness. We implement "If-Modified-Since"
+# to please tools like "wget" or the cacheability tool at
+# http://www.mnot.net/cacheability/
   if_modified_since=handler.headers.get("if-modified-since")
   if if_modified_since==last_modified : # TODO: Actually parse the header, do not do a simple string comparison
     return (304,headers,"")



More information about the cpif mailing list