oxequa / flutter_cache_image

Flutter plugin to load and cache network or firebase storage images with a retry mechanism if the download fails
GNU General Public License v3.0
34 stars 24 forks source link

Does this work with the same url but different query parameters #6

Closed Paul-Todd closed 4 years ago

Paul-Todd commented 4 years ago

Hi,

The cache seems to see this url and this url as the same

Can you confirm if this the case?

Paul-Todd commented 4 years ago

It might be better to replace resource.init() with

Future<Resource> init() async {
    _temp = await _getTempDir();
    _remote = _parse(uri);
    _local = _parse(_temp.path + '/' + _remote.path.hash);
    return this;
  }

This will then give the remote url a unique name and handle query parameters