“CAUTION: provisional headers are shown” in Chrome debugger

前端 未结 30 3448
滥情空心
滥情空心 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:08

    A common reason this happens is if you are tracking an event and you don't prevent the default action. For example, if you have a click event, then you will want to include:

    e.preventDefault();
    

    or

    return false;
    

    If you don't, you will see the provisional headers warning as well as a "canceled" status in the Network tab of your web console.

提交回复
热议问题