Skip to content

Commit

Permalink
Change of approach for handling lack of wasStaticallyCached()
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Sep 12, 2024
1 parent 2f077fd commit 8a6756d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Http/Middleware/CacheTracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ public function handle($request, Closure $next)
return $response;
}

if (is_callable([$response, 'wasStaticallyCached']) && $response->wasStaticallyCached()) {
return $response;
try {
if ($response->wasStaticallyCached()) {
return $response;
}
} catch (\Throwable $e) {

}

if ($this->content) {
Expand Down

0 comments on commit 8a6756d

Please sign in to comment.