felixbade / assistant

Web UI for ChatGPT API. No back-end, mobile-friendly, continuously user-tested
https://assistant.bloat.app
ISC License
125 stars 25 forks source link

Cache js and css in service worker #63

Closed felixbade closed 1 year ago

felixbade commented 1 year ago

Inthink the initial ”get started” popup flashes on page refresh because the js hasn’t had time to load from the network. This might be solved if the js and css files were in the service worker’s cache. The names should just be updated when the bundle hash changes. Additionally, it would be good to drop old versions of the bundle when a new version is generated. This all should happen automatically when building the app with webpack.

felixbade commented 1 year ago

Related to #56

felixbade commented 1 year ago

Fixed in f140757, 808c946