[ 
https://issues.apache.org/jira/browse/WICKET-4277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13167487#comment-13167487
 ] 

Andrea Del Bene commented on WICKET-4277:
-----------------------------------------

Hi,

I think your problem should be due to the different caching strategy 
implemented in Wicket 1.5. I'm not  100% sure, but  version 1.5 disable page 
caching with http headers. Try to set headers of TestPage like this:

@Override
    protected void setHeaders(WebResponse response) {
        super.setHeaders(response);
        response.setHeader("Pragma", "no-cache");
        response.setHeader("Cache-Control", "no-cache, max-age=0, 
must-revalidate");                
    }


Now if you click backbutton after signout you should get the expected result. 

                
> Sign in Link onClick() gets invoked by Browser Back Button
> ----------------------------------------------------------
>
>                 Key: WICKET-4277
>                 URL: https://issues.apache.org/jira/browse/WICKET-4277
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.3
>         Environment: GlassFish
>            Reporter: bernard
>         Attachments: NoBack1.4.zip, quickstart.zip
>
>
> On a test page, the user clicks on a signin link that transfers to a signin 
> page.
> The signin page transfers back to the test page.
> The user clicks on a signout link on a test page that invalidates the sesion 
> and transfers the user to the signin page.
> If the user then clicks the back button then the onClick() of the signin link 
> on the test page is invoked again unexpectedly.
> Therefore, the user cannot go back to the test page by pressing the browser 
> back button.
> My apologies if I missed something. It looks kind of tricky and difficut.
> I guess the answer is within the URL parameter ?0-1.ILinkListener-signin but 
> I don't know what to do with it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to