Skip to content

Commit

Permalink
remove unnecessary cache-tag header
Browse files Browse the repository at this point in the history
Closes #15
Closes #16
  • Loading branch information
mertasan committed Mar 30, 2024
1 parent 7c6c0ce commit 0e6acee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CloudflarePagesMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

/**
Expand Down

0 comments on commit 0e6acee

Please sign in to comment.