chrisben / imgcache.js

JS library based on the File API to cache images for offline recovery (target: cordova/phonegap & chrome)
Other
826 stars 216 forks source link

Spaced image source URL failed to download after checking isCached #176

Closed jlopezinc closed 7 years ago

jlopezinc commented 8 years ago

Steps to reproduce:

  1. Use isCached method on given URL (this URL has a space on file name)
  2. The image is not on cache
  3. On response_callback, "path" response is sanitized
  4. If immediately use cacheFile with given "path", download will fail because URl is double sanitized.
chrisben commented 7 years ago

Merged in master. Thanks.