Chrome Dev Summit 2020 is back & going virtual on December 9-10. Learn more

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