private function isRequestPrivate(Request $request): bool
    {
        if ($request->headers->has('Authorization')) {
            return true;
        }

        if (\count($request->cookies->all())) {
            return true;
        }

        return false;
    }
private function isRequestPrivate(Request $request): bool
    {
        if ($request->headers->has('Authorization')) {
            return true;
        }

        if (\count($request->cookies->all())) {
            return true;
        }

        return false;
    }
private function isRequestPrivate ( Request $ request ) : bool { if ( $ request -> headers -> has ( 'Authorization' ) ) { return true ; } if ( \ count ( $ request -> cookies -> all ( ) ) ) { return true ; } return false ; }
Checks if the Request includes authorization or other sensitive information
that should cause the cache to be bypassed.
Checks if the Request includes authorization or other sensitive information that should cause the cache to be bypassed .