You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Holger Wiechert <hw...@iks-gmbh.com> on 2001/07/25 17:24:53 UTC
The never ending story: Turning caching off
Hi everybody,
I was looking for a solution for the all time favorite "Caching Problem" (in IE).
I found a couple of "solutions, like:
1) Having the following lines in the JSP:
response.setHeader("Pragma", "NoCache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 1);
2) Turning "nocache" on for the ActionServlet:
<init-param>
<param-name>nocache</param-name>
<param-value>true</param-value>
</init-param>
3) Adding an unique parameter to the get/post, like System.currentTimeMillis()
See http://www.mail-archive.com/struts-user@jakarta.apache.org/msg03176.html
to that idea.
One answer was, that usnig tokens is the key:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg02888.html
But, correct me, if I'm wrong, what's the deal with tokens,
when I don't want a JSP to be cached?
I tried all of them, but with no success. So, my question is: did I miss
something or is it really just not possible?
Thanks in advance,
Holger
AW: The never ending story: Turning caching off --- Oooops
Posted by Holger Wiechert <hw...@iks-gmbh.com>.
Sorry, I just figured out, that the time stamp stuff works.
But I figured out another problem, that made me blind for understanding the cache problem.
I'll post it soon.
-----Ursprungliche Nachricht-----
Von: Holger Wiechert [mailto:hwi@iks-gmbh.com]
Gesendet: Mittwoch, 25. Juli 2001 17:25
An: struts-user@jakarta.apache.org
Betreff: The never ending story: Turning caching off
Hi everybody,
I was looking for a solution for the all time favorite "Caching Problem" (in IE).
I found a couple of "solutions, like:
1) Having the following lines in the JSP:
response.setHeader("Pragma", "NoCache");
response.setHeader("Cache-Control", "no-cache");
response.setDateHeader("Expires", 1);
2) Turning "nocache" on for the ActionServlet:
<init-param>
<param-name>nocache</param-name>
<param-value>true</param-value>
</init-param>
3) Adding an unique parameter to the get/post, like System.currentTimeMillis()
See http://www.mail-archive.com/struts-user@jakarta.apache.org/msg03176.html
to that idea.
One answer was, that usnig tokens is the key:
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg02888.html
But, correct me, if I'm wrong, what's the deal with tokens,
when I don't want a JSP to be cached?
I tried all of them, but with no success. So, my question is: did I miss
something or is it really just not possible?
Thanks in advance,
Holger