diff --git a/src/CloudflarePagesMiddleware.php b/src/CloudflarePagesMiddleware.php index 1cb128f..d84b98e 100644 --- a/src/CloudflarePagesMiddleware.php +++ b/src/CloudflarePagesMiddleware.php @@ -31,7 +31,7 @@ public function handle(Request $request, Closure $next): Response protected function hasCacheTags(Request $request): bool { - return $request->attributes->has(CloudflareCache::TAGS_ATTR); + return filled($request->attributes->get(CloudflareCache::TAGS_ATTR)); } /**