diff --git a/Imagine/CachePathResolver.php b/Imagine/CachePathResolver.php index 7bf6a6b63..c136da729 100644 --- a/Imagine/CachePathResolver.php +++ b/Imagine/CachePathResolver.php @@ -96,7 +96,7 @@ public function resolve(Request $request, $targetPath, $filter) // if the file has already been cached, we're probably not rewriting // correctly, hence make a 301 to proper location, so browser remembers if (file_exists($targetPath)) { - return new RedirectResponse($request->getBasePath().$targetPath); + return new RedirectResponse($request->getBasePath().$browserPath); } return $targetPath;