You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For 304 responses, webhint should check the initial 200 cache for X-Content-Type-Options. Currently, Webhint DevTools gives false positives on page reloads.
As per RFC9110 section 15.4.5, a 304 response should only include metadata that guides cache updates, headers including X-Content-Type-Options should not be included until we update its value.
If I've read the relevant source code correctly, part of httpwg/http-core#165 is still relevant that Chrome and Webkit ignore x-content- headers in 304 responses. nosniff should be set on the initial 200. Adding the X-Content-Type-Options header to 304 responses feels like a complete waste.
The text was updated successfully, but these errors were encountered:
📚 Request documentation enhancements
Description
For 304 responses, webhint should check the initial 200 cache for
X-Content-Type-Options
. Currently, Webhint DevTools gives false positives on page reloads.Details
Link: Use
X-Content-Type-Options
Header | webhint documentationAs per RFC9110 section 15.4.5, a 304 response should only include metadata that guides cache updates, headers including
X-Content-Type-Options
should not be included until we update its value.If I've read the relevant source code correctly, part of httpwg/http-core#165 is still relevant that Chrome and Webkit ignore
x-content-
headers in 304 responses.nosniff
should be set on the initial 200. Adding theX-Content-Type-Options
header to 304 responses feels like a complete waste.The text was updated successfully, but these errors were encountered: