Authored by Bogdan Poplauschi

Fixed #1553 Cached file name with path extension UIWebView issue - for iOS 7 and…

… above, remove the query from the url (prior to iOS 7 the behavior remains the same).
@@ -56,7 +56,13 @@ @@ -56,7 +56,13 @@
56 return self.cacheKeyFilter(url); 56 return self.cacheKeyFilter(url);
57 } 57 }
58 else { 58 else {
59 - return url.absoluteString; 59 + if (NSClassFromString(@"NSURLComponents")) {
  60 + NSURLComponents *urlComponents = [[NSURLComponents alloc] initWithURL:url resolvingAgainstBaseURL:NO];
  61 + urlComponents.query = nil; // Strip out query parameters.
  62 + return urlComponents.string;
  63 + } else {
  64 + return url.absoluteString;
  65 + }
60 } 66 }
61 } 67 }
62 68