refactor: replace Cache-control with Cache-Control

This commit is contained in:
kenjis 2023-02-24 13:07:49 +09:00
parent 2810595862
commit 797b51ee8d
No known key found for this signature in database
GPG Key ID: BD254878922AF198
2 changed files with 5 additions and 6 deletions

View File

@ -227,9 +227,8 @@ class DownloadResponse extends Response
*/
public function noCache(): self
{
$this->removeHeader('Cache-control');
$this->setHeader('Cache-control', ['private', 'no-transform', 'no-store', 'must-revalidate']);
$this->removeHeader('Cache-Control');
$this->setHeader('Cache-Control', ['private', 'no-transform', 'no-store', 'must-revalidate']);
return $this;
}

View File

@ -345,8 +345,8 @@ trait ResponseTrait
*/
public function noCache()
{
$this->removeHeader('Cache-control');
$this->setHeader('Cache-control', ['no-store', 'max-age=0', 'no-cache']);
$this->removeHeader('Cache-Control');
$this->setHeader('Cache-Control', ['no-store', 'max-age=0', 'no-cache']);
return $this;
}
@ -399,7 +399,7 @@ trait ResponseTrait
unset($options['last-modified']);
}
$this->setHeader('Cache-control', $options);
$this->setHeader('Cache-Control', $options);
return $this;
}