Skip to content

Even though I deleted the old file from the cache, it still shows the old photo also rebuilt widget. #502

@demirdev

Description

@demirdev

🐛 Bug Report

I deleted the old file from the cache.
DefaultCacheManager().removeFile(widget.imageUrl);
But Widget is showing the old photo when rebuilding.

When I hot restart Flutter, it shows newly photo.

My Photos is on AWS S3 like storage, for example url:
http://s3.eu-central-1.wasabisys.com/yazilimsalcozumler/e6f7c36b36a420859bab1aeb5e70866c.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=UIYRXBBCV7TPUE8X5R2Y%2F20201114%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20201114T195716Z&X-Amz-SignedHeaders=host&X-Amz-Expires=604800&X-Amz-Signature=ad2400b883e5a711bata5702102ffb5fd15rd4fb8524130dc364ead66684c50d

Expected behavior

Shows new uploaded photo.

Reproduction steps

  1. Upload/Put new photo to same image url.
  2. Delete image url from DefaultCacheManager.
  3. Rebuild Image Widget contains that image url.

Configuration

Version: ^2.3.2+1

Platform:

  • 📱 iOS
  • 🤖 Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions