Browser back button showing the page from cache?

后端 未结 2 1204
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 06:41

When I logout from wordpress website, it will be redirected to the login page. But the issue is, if I hit the browser back button, It will show the previous page, which need

2条回答
  •  再見小時候
    2020-12-09 07:00

    I have tried by setting header like below and it worked like a charm!

    header("Cache-Control: private, must-revalidate,
            max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
          );
    

提交回复
热议问题