Skip to content

Commit

Permalink
Support old method
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioribeiro committed Aug 16, 2024
1 parent 06bfc90 commit bb44969
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Services/CacheControl.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ protected function middlewaresAllowCaching(): bool
return !Helpers::collect($middleware)->contains('doNotCacheResponse');
}

public function cacheFor(int|string $maxAge): self
{
return $this->setCDNMaxAge($maxAge);
}

public function setBrowserMaxAge(int|string $maxAge): self
{
return $this->setMaxAge($maxAge);
Expand Down

0 comments on commit bb44969

Please sign in to comment.