web/request.py
changeset 10849 79066409fdcf
parent 10848 e905c95ccdfb
child 10850 928c7ec525e0
--- a/web/request.py	Fri Nov 20 17:13:03 2015 +0100
+++ b/web/request.py	Thu Nov 19 18:55:10 2015 +0100
@@ -730,12 +730,7 @@
         if validators: # if we have no
             modified = any(func(val, self.headers_out) for func, val in validators)
         # Forge expected response
-        if modified:
-            if 'Expires' not in self.headers_out:
-                # Expires header seems to be required by IE7 -- Are you sure ?
-                self.add_header('Expires', 'Sat, 01 Jan 2000 00:00:00 GMT')
-            # /!\ no raise, the function returns and we keep processing the request
-        else:
+        if not modified:
             # overwrite headers_out to forge a brand new not-modified response
             self.headers_out = self._forge_cached_headers()
             if self.http_method() in ('HEAD', 'GET'):