Skip to content

Commit

Permalink
Make sure to uniqify the qs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Oct 24, 2024
1 parent ad5fa11 commit b764f5c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Imaging/GlideManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,13 @@ private function getCachePathCallable()
$hashCallable = $this->getHashCallable();

return function ($path, $params) use ($hashCallable) {
$qs = Str::after($path, '?');
$path = Str::before($path, '?');

if ($qs) {
$path = Str::replaceLast('.', '-'.md5($qs).'.', $path);
}

$sourcePath = $this->getSourcePath($path);

if ($this->sourcePathPrefix) {
Expand Down

0 comments on commit b764f5c

Please sign in to comment.