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:
parent
9a5b9d8555
commit
fe6416072d
|
@ -43,11 +43,11 @@ use OCP\AppFramework\Http;
|
||||||
class Response {
|
class Response {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Headers - defaults to ['Cache-Control' => 'no-cache, must-revalidate']
|
* Headers - defaults to ['Cache-Control' => 'no-cache, no-store, must-revalidate']
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
private $headers = array(
|
private $headers = array(
|
||||||
'Cache-Control' => 'no-cache, must-revalidate'
|
'Cache-Control' => 'no-cache, no-store, must-revalidate'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ class ResponseTest extends \Test\TestCase {
|
||||||
|
|
||||||
public function testCacheHeadersAreDisabledByDefault(){
|
public function testCacheHeadersAreDisabledByDefault(){
|
||||||
$headers = $this->childResponse->getHeaders();
|
$headers = $this->childResponse->getHeaders();
|
||||||
$this->assertEquals('no-cache, must-revalidate', $headers['Cache-Control']);
|
$this->assertEquals('no-cache, no-store, must-revalidate', $headers['Cache-Control']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue