dumberjs / dumber-gist

A lightweight online IDE to write JS SPA prototypes in your own GitHub gists.
https://gist.dumber.app
MIT License
28 stars 2 forks source link

Move logic out of service worker #3

Closed 3cp closed 4 years ago

3cp commented 4 years ago

Make service worker very thin, move bundler and transforms out of service worker into a worker living in main app (gist.dumber.app) instead of embedded app (random-id.gist.dumber.app).

Because random-id... host name is very bad for HTTP cache, so we only want a very thin service worker living in the random host name. While majority of the js lives in gist.dumber.app which can be cached by CloudFlare.

3cp commented 4 years ago

Done.