web.dev LIVE is now over! Head to web.dev/live to watch all the sessions, see top Q&A, and 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