Am trying to output an image when a Java Servlet link is called. Currently using the following:
response.addHeader("Cache-Control", "max-age=" + CACHE_INTERVAL);
response.addDateHeader("Expires", System.currentTimeMillis() + (1000*CACHE_INTERVAL));
But this still causes the images to reload from the server at times. In comparison if you look at the tags of this:
http://graph.facebook.com/502547234/picture
It never reloads again in Firefox atleast. Any suggestions? What am I missing?
Updated headers: