I am using tomcat 8 with spring . I want to cache few specific image in browser. How can i achieve that.
I Checked This but i didn't get how to specify a specific image file.
From the server side i creating and sending img
as below
strBuilder.append("<img src='");
strBuilder.append("/resources/images/nophotos/no_photo_171x180.png");
strBuilder.append("' alt='");
strBuilder.append("");
strBuilder.append("'/>");
and on the client side i get it like <img src='/resources/images/nophotos/no_photo.png' alt='' />
Is there any other way to specify image caching ?