]> BookStack Code Mirror - bookstack/blobdiff - tests/SecurityHeaderTest.php
Minor capitalisation fix for Estonian
[bookstack] / tests / SecurityHeaderTest.php
index 2bde890ad58139ef0bc4d33416e3d4cfe68fa462..10551fc55a8d6dd90d7bf0f66ad430a8e9aee50c 100644 (file)
@@ -119,6 +119,15 @@ class SecurityHeaderTest extends TestCase
         $this->assertEquals('base-uri \'self\'', $scriptHeader);
     }
 
+    public function test_cache_control_headers_are_strict_on_responses_when_logged_in()
+    {
+        $this->asEditor();
+        $resp = $this->get('/');
+        $resp->assertHeader('Cache-Control', 'max-age=0, no-store, private');
+        $resp->assertHeader('Pragma', 'no-cache');
+        $resp->assertHeader('Expires', 'Sun, 12 Jul 2015 19:01:00 GMT');
+    }
+
     /**
      * Get the value of the first CSP header of the given type.
      */