DEV Community

Discussion on: Use React.Suspense to wait for an image to load

stunaz profile image

Interesting... but where/when are clearing the cache?

sergiodxa profile image
Sergio Daniel Xalambrí Author

The actual image cache is happening in the browser, we only cache the resources to avoid creating two resource for the same image. The cache of resource is in memory so if the user reload the page it will clear, the cache of the image depends on the HTTP header defined in the response of each image.