ipfs-shipyard / service-worker-gateway-2019-poc

[ARCHIVED] 2019 PoC of IPFS gateway fully running on a Service Worker. For modern (2024+) version see https://github.com/ipfs-shipyard/service-worker-gateway
MIT License
61 stars 11 forks source link

The stats page should be on /stats and not /ipfs/stats #18

Closed daviddias closed 6 years ago

daviddias commented 6 years ago

/ipfs/stats - Get the current stats of the IPFS Node running in the service worker is polluting the /ipfs namespace.

vasco-santos commented 6 years ago

This should be correct since v0.1.3, and more precisely this PR #17 . Did you find any problem?

daviddias commented 6 years ago

See:

image image
vasco-santos commented 6 years ago

Hey David,

Those pictures seem like the service worker was not running, since the service worker did not fetch the request before arriving to gatsby. Anyway, the project being tested js.ipfs.io has a package-lock, which was locking the service-worker-gateway version. I made a PR for updating its version and tested locally with localhost:8000/stats and the stats page showed up correclty.

daviddias commented 6 years ago

Thank you @vasco-santos!