Explain how images cache work in Ionic 4

Can someone explain me how ion-img cache mechanism in Ionic 4? What are default configs and how can I change them?

1 Like

Don’t you guys have experience with this?

1 Like

Yes, also i need too

That would be awesome though! Does anyone has any experience with image caching mechanisms on ionic4 ?

1 Like

Where did you read, that Ionic explicit has a caching mechanism for <ion-img>'s?

There is no word about caching in the documentation of the tag.

Also you can check at any time the source code on GitHub, there is no mechanic implemented, “just” the IntersectionObserver to load images when visible.

Hope it clarifies.


1 Like