Problem with caching
Hi, When I try to follow a link to one of My action class. Sometimes, it works correctly and sometimes, my browser just take the old copy of the generated page it has in cache. My question is: How can I avoid that ? What do I have to do to be sure my browser doesn't set anything in cache ? I tried to put the following in my jsp pages, without any success: % response.addHeader(pragma,no-cache); // http v1.0 response.addHeader(cache-control,no-cache); // http v1.1 % Could anybody point me to the right way to achieve that ? Thanks in advance. Friendly Regards, Slimane -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with caching
For all actions, you could configure the ActionServlet in web.xml, like this: ... init-param param-namenocache/param-name param-valuetrue/param-value /init-param ... -- C. Bouessay Slimane Zouggari wrote: Hi, When I try to follow a link to one of My action class. Sometimes, it works correctly and sometimes, my browser just take the old copy of the generated page it has in cache. My question is: How can I avoid that ? What do I have to do to be sure my browser doesn't set anything in cache ? I tried to put the following in my jsp pages, without any success: % response.addHeader(pragma,no-cache); // http v1.0 response.addHeader(cache-control,no-cache); // http v1.1 % Could anybody point me to the right way to achieve that ? Thanks in advance. Friendly Regards, Slimane -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Problem with caching
my dev environment is : Tomcat 4 and Orion (it has to work on both of them) + IE4,Opera5,Netscape4.7 Friendly Regards, Slimane At 17:30 27/03/2002 +0100, Etienne, Ingo (Goetzfried AG) wrote the following Hi, I had the same problem with IIS and IE5. The solution to this was to set the cache-control header on the web server, all other attempts were simply ignored by the browser. The drawback is that every single page and all images within these pages are not cached, so you loose the ability to distinguish which pages you don't want to be cached and which are ok to be cached. What is your dev environment? IIS + IE5 :) hth Ingo -Original Message- From: Slimane Zouggari [mailto:[EMAIL PROTECTED]] Sent: Mittwoch, 27. März 2002 17:18 To: [EMAIL PROTECTED] Subject: Problem with caching Hi, When I try to follow a link to one of My action class. Sometimes, it works correctly and sometimes, my browser just take the old copy of the generated page it has in cache. My question is: How can I avoid that ? What do I have to do to be sure my browser doesn't set anything in cache ? I tried to put the following in my jsp pages, without any success: % response.addHeader(pragma,no-cache); // http v1.0 response.addHeader(cache-control,no-cache); // http v1.1 % Could anybody point me to the right way to achieve that ? Thanks in advance. Friendly Regards, Slimane -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Make it run, Make it right, Make it fast -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem with caching
Thanx, I'll try At 17:35 27/03/2002 +0100, Christian Bouessay wrote the following For all actions, you could configure the ActionServlet in web.xml, like this: ... init-param param-namenocache/param-name param-valuetrue/param-value /init-param ... -- C. Bouessay Slimane Zouggari wrote: Hi, When I try to follow a link to one of My action class. Sometimes, it works correctly and sometimes, my browser just take the old copy of the generated page it has in cache. My question is: How can I avoid that ? What do I have to do to be sure my browser doesn't set anything in cache ? I tried to put the following in my jsp pages, without any success: % response.addHeader(pragma,no-cache); // http v1.0 response.addHeader(cache-control,no-cache); // http v1.1 % Could anybody point me to the right way to achieve that ? Thanks in advance. Friendly Regards, Slimane -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Make it run, Make it right, Make it fast -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]