diff --git a/src/CachePlugin.php b/src/CachePlugin.php index 805d361..b72dbbb 100644 --- a/src/CachePlugin.php +++ b/src/CachePlugin.php @@ -274,7 +274,7 @@ protected function isCacheable(ResponseInterface $response) private function isCacheableRequest(RequestInterface $request) { foreach ($this->config['blacklisted_paths'] as $not_to_cache_path) { - if (1 === preg_match('/'.$not_to_cache_path.'/', $request->getUri())) { + if (1 === preg_match('/'.$not_to_cache_path.'/', $request->getRequestTarget())) { return false; } }