internetarchive / internetarchive/dweb-serviceworker

archivesw.html generates unusable url

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

After loading https://dweb.me/examples/archive.html?item=prelinger&verbose=true
the URL is canonicalized (correctly) to
https://dweb.me/arc/archive.org/details/prelinger?verbose=true
But that file fails to load because service worker intercepts
https://dweb.me/arc/archive.org/details/includes/jquery-1.10.2.min.js
and loads archive.html again,

This is coming from the SCript load ./includes/jquery-1.10.2.min.js in archive.html i.e. not something passing through ReactFake

It works fine in non-service worker context because ifor some reason the base for that is examples/archive.html

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the canonicalized URL from examples/archive.html?item=prelinger&verbose=true and inspect archive.html, especially its ./includes/jquery-1.10.2.min.js script load. Trace how the service worker handles the resulting /arc/archive.org/details/includes/jquery-1.10.2.min.js request; done means the jQuery resource loads instead of archive.html.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.