Force Firefox to Reload Page on Back Button

后端 未结 8 1706
孤独总比滥情好
孤独总比滥情好 2020-12-14 08:37

How do you make Firefox rerun javascript and reload the entire page when the user presses the back button? I was able to do this in all browsers except Firefox from the hel

8条回答
  •  萌比男神i
    2020-12-14 09:27

    I think the answer you might want is here: https://stackoverflow.com/a/5493543/1475148

    TLDR: HTTPS + Cache-Control: must-revalidate as a server-sent header + Expires header set in the past should make it work. Here’s a sample PHP implementation:

    
    
    
        
            Auto-reloading page
        
        
            

    The current day is and the time is .

    Click away

提交回复
热议问题