wsgi/request.py
changeset 8316 d5b1b75805dd
parent 8314 cfd6ab461849
child 8752 e19f4bba89cd
--- a/wsgi/request.py	Thu Mar 15 17:57:40 2012 +0100
+++ b/wsgi/request.py	Thu Mar 15 17:59:27 2012 +0100
@@ -150,19 +150,3 @@
         postdata = buf.getvalue()
         buf.close()
         return postdata
-
-    def _validate_cache(self):
-        """raise a `DirectResponse` exception if a cached page along the way
-        exists and is still usable
-        """
-        if self.get_header('Cache-Control') in ('max-age=0', 'no-cache'):
-            # Expires header seems to be required by IE7
-            self.add_header('Expires', 'Sat, 01 Jan 2000 00:00:00 GMT')
-            return
-#         try:
-#             http.checkPreconditions(self._twreq, _PreResponse(self))
-#         except http.HTTPError, ex:
-#             self.info('valid http cache, no actual rendering')
-#             raise DirectResponse(ex.response)
-        # Expires header seems to be required by IE7
-        self.add_header('Expires', 'Sat, 01 Jan 2000 00:00:00 GMT')