Bom dia Daniela,

Do Faq do jGuru:

You will need to set the appropriate HTTP header attributes to prevent the dynamic
content output by the JSP page from being cached by the browser.

Just execute the following scriptlet at the beginning of your JSP pages to prevent
them from being cached at the browser. You need both the statements to take
care of some of the older browser versions.

<%
response.setHeader("Cache-Control","no-store"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy server

%>
However, please note that there are some problems with disabling page caching
under IE 5.0 due to the unique buffering requirements of the browser. Please
see the Microsoft knowledge base for details:

http://support.microsoft.com/support/kb/articles/Q222/0/64.ASP
http://support.microsoft.com/support/kb/articles/Q234/2/47.ASP

HIH,

Alexandre

>Bom dia a todos !
>
>         Gostaria de saber se existe algum mecanismo que NAO permita que
>uma pag jsp seja "cacheada" pelo browser.
>         Utilizo jsp 1.0.
>         Obrigada !
>
>Daniela
>
>    --------------------------- LISTA SOUJAVA ---------------------------
>    http://www.soujava.org.br  -  Sociedade de Usuários Java da Sucesu-SP
>    [dúvidas mais comuns: http://www.soujava.org.br/faq.htm]
>    [para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
>    ---------------------------------------------------------------------
>
>
http://netwinsite.com

    --------------------------- LISTA SOUJAVA ---------------------------
    http://www.soujava.org.br  -  Sociedade de Usuários Java da Sucesu-SP
    [dúvidas mais comuns: http://www.soujava.org.br/faq.htm]
    [para sair da lista: http://www.soujava.org.br/forum/cadastrados.htm]
    ---------------------------------------------------------------------

Responder a