Commits

Robert Brewer  committed 6a853fa

Test update for must-revalidate.

  • Participants
  • Parent commits 35c63c6

Comments (0)

Files changed (1)

File cherrypy/test/test_caching.py

         # This also gives us a chance to test 0 expiry with no other headers
         self.assertHeader("Pragma", "no-cache")
         if cherrypy.server.protocol_version == "HTTP/1.1":
-            self.assertHeader("Cache-Control", "no-cache")
+            self.assertHeader("Cache-Control", "no-cache, must-revalidate")
         d = self.assertHeader("Date")
         self.assertHeader("Expires", d)
         
         self.assertStatus("200 OK")
         self.assertHeader("Pragma", "no-cache")
         if cherrypy.server.protocol_version == "HTTP/1.1":
-            self.assertHeader("Cache-Control", "no-cache")
+            self.assertHeader("Cache-Control", "no-cache, must-revalidate")
         d = self.assertHeader("Date")
         self.assertHeader("Expires", d)
         
         self.assertStatus("200 OK")
         self.assertHeader("Pragma", "no-cache")
         if cherrypy.server.protocol_version == "HTTP/1.1":
-            self.assertHeader("Cache-Control", "no-cache")
+            self.assertHeader("Cache-Control", "no-cache, must-revalidate")
         d = self.assertHeader("Date")
         self.assertHeader("Expires", d)
         
         # overwritten here ...
         self.assertHeader("Pragma", "no-cache")
         if cherrypy.server.protocol_version == "HTTP/1.1":
-            self.assertHeader("Cache-Control", "no-cache")
+            self.assertHeader("Cache-Control", "no-cache, must-revalidate")
         d = self.assertHeader("Date")
         self.assertHeader("Expires", d)