This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 213
Handle/cache offline-capable mode media requests in service worker #465
Draft
eyelidlessness
wants to merge
20
commits into
enketo:master
Choose a base branch
from
eyelidlessness:refactor/media
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Commits on Nov 14, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 95ba407 - Browse repository at this point
Copy the full SHA 95ba407View commit details -
Configuration menu - View commit details
-
Copy full SHA for c94eef6 - Browse repository at this point
Copy the full SHA c94eef6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8ebca9 - Browse repository at this point
Copy the full SHA d8ebca9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c58d199 - Browse repository at this point
Copy the full SHA c58d199View commit details -
Fix: always serve current state of offline worker script
This only affects dev, but otherwise requires a server restart to make any service worker changes
Configuration menu - View commit details
-
Copy full SHA for 02327cb - Browse repository at this point
Copy the full SHA 02327cbView commit details -
- Claim clients immediately on activation. It's not clear this completely eliminates the need for a reload, but it does get part of the way there. - Don't attempt to cache responses for non-GET requests
Configuration menu - View commit details
-
Copy full SHA for 61da522 - Browse repository at this point
Copy the full SHA 61da522View commit details -
Fix: remove stale versioned caches
Also, no reason for an array of keys which only ever has a length of one
Configuration menu - View commit details
-
Copy full SHA for 7e23a6e - Browse repository at this point
Copy the full SHA 7e23a6eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bff15df - Browse repository at this point
Copy the full SHA bff15dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for afe3ee3 - Browse repository at this point
Copy the full SHA afe3ee3View commit details -
Fix: always use the same cache key when requesting the page itself
This should not vary between different forms. This actually fixes a bug in both the current implementation as well as the previous changes on this branch: 1. Request offline-capable Form A while online 2. Request offline-capable Form B while online 3. Any changes which would trigger a service worker update 4. Request offline-capable Form A again while online, which updates the service worker and wipes out the previous cache 5. Request offline-capable Form B while OFFLINE, which will fail because its cached HTML has been removed Unless or until there is some meaningful difference in the HTML served for different forms, this change should be safe because the HTML and service worker will both be re-cached at the same time
Configuration menu - View commit details
-
Copy full SHA for 3491142 - Browse repository at this point
Copy the full SHA 3491142View commit details -
Configuration menu - View commit details
-
Copy full SHA for 853985c - Browse repository at this point
Copy the full SHA 853985cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2636925 - Browse repository at this point
Copy the full SHA 2636925View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e25bce - Browse repository at this point
Copy the full SHA 4e25bceView commit details -
Configuration menu - View commit details
-
Copy full SHA for a1a4207 - Browse repository at this point
Copy the full SHA a1a4207View commit details -
Document updated offline/caching behavior
# Conflicts: # tutorials/37-offline.md # Conflicts: # tutorials/37-offline.md
Configuration menu - View commit details
-
Copy full SHA for 4e717f8 - Browse repository at this point
Copy the full SHA 4e717f8View commit details -
Remove blocking on initial form cache update
And unnecessary try/catch block around initial non-blocking servicer worker update check
Configuration menu - View commit details
-
Copy full SHA for 5de6d66 - Browse repository at this point
Copy the full SHA 5de6d66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10996fb - Browse repository at this point
Copy the full SHA 10996fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e9263c9 - Browse repository at this point
Copy the full SHA e9263c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for a1f6b7a - Browse repository at this point
Copy the full SHA a1f6b7aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1c39cec - Browse repository at this point
Copy the full SHA 1c39cecView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.