]> source.dussan.org Git - nextcloud-server.git/commitdiff
set 'no-store' cache header if we do not want FF to cache
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 9 Jan 2017 20:29:59 +0000 (21:29 +0100)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Mon, 9 Jan 2017 20:29:59 +0000 (21:29 +0100)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
lib/public/AppFramework/Http/Response.php
tests/lib/AppFramework/Http/ResponseTest.php

index 8591d6abc68e3cb7b9d6345c7f026b4f9abe4dee..051e68f314491bfdeefefdbc5d76bc4df76e0e01 100644 (file)
@@ -43,11 +43,11 @@ use OCP\AppFramework\Http;
 class Response {
 
        /**
-        * Headers - defaults to ['Cache-Control' => 'no-cache, must-revalidate']
+        * Headers - defaults to ['Cache-Control' => 'no-cache, no-store, must-revalidate']
         * @var array
         */
        private $headers = array(
-               'Cache-Control' => 'no-cache, must-revalidate'
+               'Cache-Control' => 'no-cache, no-store, must-revalidate'
        );
 
 
index 0c582f8f6eafb5c1491e8f14bbc244718fa1fd17..3ed946dc6ca2bb6fdafea3b3120146326915e313 100644 (file)
@@ -97,7 +97,7 @@ class ResponseTest extends \Test\TestCase {
 
        public function testCacheHeadersAreDisabledByDefault(){
                $headers = $this->childResponse->getHeaders();
-               $this->assertEquals('no-cache, must-revalidate', $headers['Cache-Control']);
+               $this->assertEquals('no-cache, no-store, must-revalidate', $headers['Cache-Control']);
        }