Hi,

On Sat, Jun 9, 2012 at 4:54 PM, kshitiz <k.agarw...@gmail.com> wrote:
> Hi,
>
> I want to remove login page from browser cache after user logs in. I am
> using the code :
>
> protected void setHeaders(WebResponse response) {
>
>                *response.setHeader("Pragma", "no-cache");
>                response.setHeader("Expires", "0");
>                response.setHeader("Cache-Control",
>                                "no-cache, max-age=0, must-revalidate, 
> no-store");*

This is exactly what WebResponse#disableCache() does.
I don't see you calling "super.setHeaders(response)". Are you sure
that something doesn't execute later and override your headers ?

>        }
>
> But it is not working. *Even I have tried the changes given in *
>
> https://cwiki.apache.org/WICKET/caching-in-wicket-15.html
> *https://cwiki.apache.org/WICKET/caching-in-wicket-15.html*
>
> What I am missing??
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/setHeaders-not-working-in-1-5-tp4649796.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to