mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
refactor: replace Cache-control
with Cache-Control
This commit is contained in:
parent
2810595862
commit
797b51ee8d
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user