PHP Redirect that force refresh (CTRL+F5)

前端 未结 3 463
没有蜡笔的小新
没有蜡笔的小新 2021-01-20 15:50

I have a page with an editable table. I need users to be able to edit this and then submit their changes. Everything works well until I redirect them to the same page with n

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-20 16:19

    You must set the cache control and expiration on the page which you wish to force-refresh on. By setting that before the redirect, you're telling the browser to not cache the page you're redirecting from.

提交回复
热议问题