workbox-broadcast-update
Classes
BroadcastCacheUpdate
Uses the postMessage()
API to inform any open windows/tabs when a cached
response has been updated.
For efficiency's sake, the underlying response bodies are not compared; only specific response headers are checked.
BroadcastUpdatePlugin
This plugin will automatically broadcast a message whenever a cached response is updated.
Method
responsesAreSame
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