set 'no-store' cache header if we do not want FF to cache

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2017-01-09 21:29:59 +01:00
parent 9a5b9d8555
commit fe6416072d
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
2 changed files with 3 additions and 3 deletions

View 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'
);

View 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']);
}