My friends and I are working on a website where we would like to cache certain images in order to display them faster in the future. I have two main questions:
- How do you cache an image?
- How do you use an image once it has been cached? (and just to verify, if an image is cached on page A, it is possible to call it from the cache to use it on page B, right?)
Also, is it possible to set when the cached version of the image will expire?
It would be much appreciated if an example and/or a link to a page which describes this further was included.
We're fine using either raw Javascript or the jQuery version.