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
2 changed files with 3 additions and 3 deletions
|
@ -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'
|
||||
);
|
||||
|
||||
|
||||
|
|
|
@ -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']);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue