teleclimber / Dropserver

An application platform for your personal web services. https://dropserver.org
Apache License 2.0
45 stars 1 forks source link

ds-dev and service workers can cause problems #41

Open teleclimber opened 2 years ago

teleclimber commented 2 years ago

If you have a service worker registered on localhost, it will apply to localhost:xxxx/dropserver-dev/ path as well, naturally.

Depending on how the sw works, it could make using ds-dev difficult.

We have to assume many dropapps will be web apps with a service worker. So this is a very common situation: The app you're working on with "ds-dev" will register a service worker and cause problems.

From my experience different ports on localhost use the same sw? So just using another port may not work.

teleclimber commented 2 years ago

One possible solution: if you assume there will be a special path for appspaces for dropserver related stuff, like:

appspace.example/.dropserver/

Then you can give guidance on how service workers should handle these paths and include guidance that /.dropserver/ds-dev/ should be ignored by the sw.