Reputation: 124
I have a carousel with about 20 images. When all images are loaded, they should be cached, and then loaded once again in an iframe. Browser shows that images are cached.
The issue is the same image URL in an iframe downloading them once again, not loading from the cache. Is there any way to load these images from cache?
Upvotes: 0
Views: 575
Reputation: 1074475
The browser's cache is not window-specific.
If your images are getting re-requested, it's because one of these things is true:
To fix it, ensure that your URLs to the images evaluate to the same full URL (they probably already do, but double-check), and that the server sends back sufficient caching information to allow the browser to cache the images.
Upvotes: 1