web.dev LIVE has kicked off! Join us now for our digital event from June 30th to July 2nd at web.dev/live

Module: workbox-broadcast-update

Classes

Method

responsesAreSame

static

responsesAreSame(firstResponse, secondResponse, headersToCheck) returns boolean

Given two Response's, compares several header values to see if they are the same or not.

Parameter

firstResponse

Response

secondResponse

Response

headersToCheck

Array of string

Returns

boolean