Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

jordanstephens

Member since
jordanstephens

Recent Docs Activity

View all activity
Page Date Comment

Using Fetch


Update last revision to prevent `Uncaught TypeError` when `response.headers.get("content-type")` is `null`

Using Fetch


Change `content-type` header condition to check for `application/json` to be a substring of the `content-type` header, but not necessarily equal to it. This allows for header values such as `application/json; charset=utf-8` to pass the condition.