Chrome Dev Summit is back! Visit goo.gle/cds2021 to secure your spot in workshops, office hours and learning lounges!

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