You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by novotny <no...@gridsphere.org> on 2009/03/26 02:44:08 UTC
problems with back button
Hi,
I notice when I hit the back button it takes me to the last page without
hitting the server. I read some posts that mentioned the method in WebPage
that should disable caching by default
protected void setHeaders(WebResponse response) {
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache, max-age=0,
must-revalidate"); // no-store
}
But it doesn't seem to work-- I'm using Firefox version 3.0.7. Has anyone
encountered this problem before?
Thanks, Jason
--
View this message in context: http://www.nabble.com/problems-with-back-button-tp22714651p22714651.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: problems with back button
Posted by Jeremy Thomerson <je...@wickettraining.com>.
http://www.nabble.com/Back-button-retrieving-cached-data-even-with-proper-headers.-to17260832.html#a17260832
--
Jeremy Thomerson
http://www.wickettraining.com
On Wed, Mar 25, 2009 at 8:44 PM, novotny <no...@gridsphere.org> wrote:
>
> Hi,
>
> I notice when I hit the back button it takes me to the last page without
> hitting the server. I read some posts that mentioned the method in WebPage
> that should disable caching by default
>
> protected void setHeaders(WebResponse response) {
> response.setHeader("Pragma", "no-cache");
> response.setHeader("Cache-Control", "no-cache, max-age=0,
> must-revalidate"); // no-store
> }
>
> But it doesn't seem to work-- I'm using Firefox version 3.0.7. Has anyone
> encountered this problem before?
>
> Thanks, Jason
> --
> View this message in context:
> http://www.nabble.com/problems-with-back-button-tp22714651p22714651.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>