You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constrefreshResponse=cacheResponse.then(response=>{if(response){// If we have cached version of the request, we should update it and inform the userreturnupdatedResponse;}}).then(response=>{if(response){// `response` is the fetch response here// We should inform the user somehow here.}});event.waitUntil(refreshResponse);
Also, take the opportunity to clarify the code.
The text was updated successfully, but these errors were encountered:
It should be:
Also, take the opportunity to clarify the code.
The text was updated successfully, but these errors were encountered: