HTTP header to detect a preload request by Google Chrome

后端 未结 2 1174
[愿得一人]
[愿得一人] 2020-12-06 16:47

Google Chrome 17 introduced a new feature which preloads a webpage to improve rendering speed upon actually making the request (hitting enter in the omnibar).

Two qu

2条回答
  •  难免孤独
    2020-12-06 17:23

    Chrome stopped sending X-Purpose header in 2011 and they stated that they won't fix it there: https://code.google.com/p/chromium/issues/detail?id=86175.

    They re-introduced sending Purpose:prefetch headers with all nostate-prefetch requests back in 2018 as stated by the last comment on this issue. https://bugs.chromium.org/p/chromium/issues/detail?id=86175#c65

提交回复
热议问题