Hello I am working on chat application and I have user profile images these are refreshing after 1s interval using Js. After 1s my Js script send request to server and on server side it check if user have profile image in database then it send all users profile images. This make user profile images blinking after 1s. I want to cache user profile images so that it can't load images from server again and again. First time it load from server and cache images in browser and then for each request it get images from cache not from server. But when user update their profile image then it must load updated profile image from server.
Please tell if it's possible.. Thanks in advance..
You can use this meta tag for caching images :
<meta http-equiv="Cache-control" content="public" />