Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Why caching what we decided not to cache in the example js13kpwa? #2957

@Dominic-Mayers

Description

@Dominic-Mayers

Request type

  • [] Please close this issue, I accidentally submitted it without adding any details
  • New documentation
  • [x ] Correction or update

Details

I am sharing the experience that I had while studying the page https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps/Offline_Service_workers. In the code, games.js is not in the list of the shell items to cache. I thought, hey I can add an entry server side and see that it will be updated. It did not work ! It took me a few minutes to realize that in the code below when an item is not found in the cache, we cache it. So, we could as well have included games.js in the list. I found this a bit confusing. The example should be more explicit about whether the goal is to cache every thing (including game.js) or not.

Metadata

Metadata

Assignees

Labels

30 minute taskThis is a fairly quick issue to fix, estimated time 30 minutes.Content:WebAPIFor content triage purposes: This is related to WebAPI contentEst:MediumTask estimated as medium (up to a day's work?)P2Fix next quarter

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions