+ Start a Discussion

IE back button

Hi all,


I have a Visualforce page with a commandbutton.


If I click on my button, the page is refreshed.

Then, I click again on my button: the page is refreshed again.

Then, I click on the IE Back button and I get the following error message "Webpage has expired".



Here is my VF Page:


<apex:page controller="testBack"> <apex:form > <apex:commandlink action="{!MyClick}" value="Click Me" /> </apex:form> </apex:page>

 Here is my Ctrl:


public class testBack { public PageReference MyClick() { //do something return null; } }


Any workaround for this problem?





Hi Yonathan,


That's not problem with your code . Problem with IE7 & IE 8.Even I got same error message.


pls chk this link:





Add cache="true" to the apex:page component tag.


<apex:page controller="testBack" cache="true">
    <apex:form >
        <apex:commandlink action="{!MyClick}" value="Click Me" />