Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service worker capture fix: disable by default for now #506

Merged
merged 2 commits into from Mar 22, 2024
Merged

Conversation

ikreymer
Copy link
Member

Due to issues with capturing top-level pages, make bypassing service workers the default for now. Previously, it was only disabled when using profiles. (This is also consistent with ArchiveWeb.page behavior).
Includes:

  • add --serviceWorker option which can be disabled, disabled-if-profile (previous default) and enabled
  • ensure page timestamp is set for direct fetch
  • warn if page timestamp is missing on serialization, then set to now before serializing

bump version to 1.0.2

- due to issues with capturing top-level pages, add option to disabled service workers always
- add --serviceWorker option which can be disable, disable-if-profile (previous default) and enabled
- ensure page ts is set for direct fetch
- warn if page ts is missing, then set to now before serializing
bump to 1.0.2
@ikreymer ikreymer requested a review from tw4l March 22, 2024 20:15
Copy link
Contributor

@tw4l tw4l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works great! Tested with https://bitarchivist.net, and now seeing the full request/response records in the WARCs and timestamps for all files!

@ikreymer ikreymer merged commit 22a7351 into main Mar 22, 2024
4 checks passed
@ikreymer ikreymer deleted the sw-fix branch March 22, 2024 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants