app/soc/views/models/base.py
changeset 1349 d05a9bf08c11
parent 1342 f8056a197fb8
child 1357 3dd1507aa723
--- a/app/soc/views/models/base.py	Sun Feb 15 16:11:47 2009 +0000
+++ b/app/soc/views/models/base.py	Sun Feb 15 18:50:13 2009 +0000
@@ -35,6 +35,7 @@
 from soc.views.helper import decorators
 from soc.views.helper import forms
 from soc.views.helper import redirects
+from soc.views.helper import responses
 from soc.views import sitemap
 
 import soc.logic
@@ -623,9 +624,12 @@
     template = 'soc/json.html'
 
     response = responses.respond(request, template, context)
-    # TODO IE7 seems to ignore the headers
+    # if the browser supports HTTP/1.1
+    # post-check and pre-check and no-store for IE7
+    response['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0'
+    # if the browser supports HTTP/1.0
     response['Pragma'] = 'no-cache'
-    response['Cache-Control'] = 'no-cache, must-revalidate'
+    
     return response
 
   def _editPost(self, request, entity, fields):