Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlegner committed Sep 2, 2024
1 parent f0d64d1 commit 1b35c8c
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/walrus-sites/restrictions.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,16 @@ have this limitation.
## No support for progressive web apps (PWAs)

With the current design, Walrus Sites cannot be used for progressive web apps (PWAs).
Two characteristics of the service-worker portal prevent support for PWAs:

- Since the service worker needs to be registered for the page to work, the PWA's manifest file cannot be loaded by the browser directly;
- There can only be one service worker registered per origin. Therefore, registering a PWA's service worker would remove the Walrus Sites service worker, breaking Walrus Sites' functionality.
Two characteristics of the service-worker Portal prevent support for PWAs:

Note that the server-side portal does share these limitations. However, for the moment, we support both technologies: Walrus Sites must be able to load from both a service-worker portal and a server-side portal, and therefore have to be built with the more restrictive feature set. For more details, see the [installation requirements for PWAs](https://en.wikipedia.org/wiki/Progressive_web_app#Installation_criteria).
- Since the service worker needs to be registered for the page to work, the PWA's manifest file
cannot be loaded by the browser directly.
- There can only be one service worker registered per origin. Therefore, registering a PWA's service
worker would remove the Walrus Sites service worker, breaking Walrus Sites' functionality.

Note that the server-side Portal does not share these limitations. However, for the moment, we
support both technologies: Walrus Sites must be able to load from both a service-worker Portal and a
server-side Portal, and therefore have to be built with the more restrictive feature set. For more
details, see the [installation requirements for
PWAs](https://en.wikipedia.org/wiki/Progressive_web_app#Installation_criteria).

0 comments on commit 1b35c8c

Please sign in to comment.