Reverted all the changes for "Removed the URL query params from the filename (key)" fb0cdb6d
1bf62d4
#1584 - fixes #1433 #1553 #1583 #1585
This is a deal breaker for people. The solution for those issues (i.e. very long urls) is to set the SDWebImageManager cacheKeyFilter block and do their own calculations there.
This commit is contained in:
parent
fc0de57066
commit
de149aedaa
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
#### Fixes:
|
#### Fixes:
|
||||||
|
|
||||||
- Removed the URL query params from the filename (key) fb0cdb6d 1bf62d4 #1584 - fixes #1433 #1533 #1583 #1585
|
- Removed the URL query params from the filename (key) fb0cdb6d 1bf62d4 #1584 - fixes #1433 #1553 #1583 #1585
|
||||||
- Fixed the WebP build with the official 1.0.0 CocoaPods release f1a471e - fixes #1444
|
- Fixed the WebP build with the official 1.0.0 CocoaPods release f1a471e - fixes #1444
|
||||||
- Updated doc: `removeImageForKey:` not synchronous e6e5c51 - fixes #1379 #1415
|
- Updated doc: `removeImageForKey:` not synchronous e6e5c51 - fixes #1379 #1415
|
||||||
|
|
||||||
|
|
|
@ -60,16 +60,10 @@
|
||||||
|
|
||||||
if (self.cacheKeyFilter) {
|
if (self.cacheKeyFilter) {
|
||||||
return self.cacheKeyFilter(url);
|
return self.cacheKeyFilter(url);
|
||||||
} else {
|
|
||||||
if (NSClassFromString(@"NSURLComponents") && [NSURLComponents instancesRespondToSelector:@selector(string)]) {
|
|
||||||
NSURLComponents *urlComponents = [[NSURLComponents alloc] initWithURL:url resolvingAgainstBaseURL:NO];
|
|
||||||
urlComponents.query = nil; // Strip out query parameters.
|
|
||||||
return [urlComponents.URL absoluteString];
|
|
||||||
} else {
|
} else {
|
||||||
return [url absoluteString];
|
return [url absoluteString];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
- (BOOL)cachedImageExistsForURL:(NSURL *)url {
|
- (BOOL)cachedImageExistsForURL:(NSURL *)url {
|
||||||
NSString *key = [self cacheKeyForURL:url];
|
NSString *key = [self cacheKeyForURL:url];
|
||||||
|
|
Loading…
Reference in New Issue