“CAUTION: provisional headers are shown” in Chrome debugger

前端 未结 30 3053
滥情空心
滥情空心 2020-11-22 11:52

I noticed a strange caution message when looking at downloaded resources using Google chrome inspector (F12):

Caution provisional headers a

30条回答
  •  长发绾君心
    2020-11-22 12:17

    Use this code fist of your code:

    header('Cache-Control: no-cache, no-store, must-revalidate');
    header('Pragma: no-cache');
    header('Expires: 0');
    

    This works for me.

提交回复
热议问题