-
-
Notifications
You must be signed in to change notification settings - Fork 530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.x] Always append original filenames to Glide URLs #9616
Conversation
Marking this as a draft until I can figure out why the tests are failing 🤔 |
Also wait until #9610 is done because I bet the merge conflicts will be a pain. |
@duncanmcclean In a review comment on #9610, @ryanmitchell mentioned that the Glide version used by tests is older and doesn't support the $server = $this->server();
if (method_exists($server, 'getCachePathCallable)) {
$customCallable = $server->getCachePathCallable();
$server->setCachePathCallable(null);
$server->deleteCache($pathPrefix.'/'.$asset->path());
$server->setCachePathCallable($customCallable);
} else {
$server->deleteCache($pathPrefix.'/'.$asset->path());
}
|
Thanks! I'll wait until that pull request has been merged before continuing with this PR. |
A note for when we get around to this... Whatever ends up getting merged in #9610, we can probably ignore/revert and just bump the min version of Glide to |
I think this PR should also remove the |
Syncing change from statamic/cms#9616
This pull request drops the config option added in #8661 so original filenames are always appended to Glide URLs. The behaviour is no longer optional.