Skip to content

Commit 797b51e

Browse files
committed
refactor: replace Cache-control with Cache-Control
1 parent 2810595 commit 797b51e

2 files changed

Lines changed: 5 additions & 6 deletions

File tree

system/HTTP/DownloadResponse.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,8 @@ public function setContentType(string $mime, string $charset = 'UTF-8')
227227
*/
228228
public function noCache(): self
229229
{
230-
$this->removeHeader('Cache-control');
231-
232-
$this->setHeader('Cache-control', ['private', 'no-transform', 'no-store', 'must-revalidate']);
230+
$this->removeHeader('Cache-Control');
231+
$this->setHeader('Cache-Control', ['private', 'no-transform', 'no-store', 'must-revalidate']);
233232

234233
return $this;
235234
}

system/HTTP/ResponseTrait.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,8 @@ protected function formatBody($body, string $format)
345345
*/
346346
public function noCache()
347347
{
348-
$this->removeHeader('Cache-control');
349-
$this->setHeader('Cache-control', ['no-store', 'max-age=0', 'no-cache']);
348+
$this->removeHeader('Cache-Control');
349+
$this->setHeader('Cache-Control', ['no-store', 'max-age=0', 'no-cache']);
350350

351351
return $this;
352352
}
@@ -399,7 +399,7 @@ public function setCache(array $options = [])
399399
unset($options['last-modified']);
400400
}
401401

402-
$this->setHeader('Cache-control', $options);
402+
$this->setHeader('Cache-Control', $options);
403403

404404
return $this;
405405
}

0 commit comments

Comments
 (0)