V
vinodh
I am having problem with servlet caching. My Servlet keeps displaying
previously cached image instead of an updated image. I tried out the
following workarounds and was not successful.
1. Set the following Response headers
res.setDateHeader("Expires", 0);
res.setHeader("Cache-Control", "no-store, no-cache, must-revalidate,
post-
check=0, pre-check=0");
res.setHeader("Pragma", "no-cache");
2. Set HTML META TAG:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
Has anyone experienced a similar issue and can you share your
worarounds. I even tried setting DateHeader as follows but no luck.
res.setDateHeader("expires", System.currentTimeMillis()).
thanks in advace
vinodh
previously cached image instead of an updated image. I tried out the
following workarounds and was not successful.
1. Set the following Response headers
res.setDateHeader("Expires", 0);
res.setHeader("Cache-Control", "no-store, no-cache, must-revalidate,
post-
check=0, pre-check=0");
res.setHeader("Pragma", "no-cache");
2. Set HTML META TAG:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="0">
Has anyone experienced a similar issue and can you share your
worarounds. I even tried setting DateHeader as follows but no luck.
res.setDateHeader("expires", System.currentTimeMillis()).
thanks in advace
vinodh