docsify icon indicating copy to clipboard operation
docsify copied to clipboard

Service Worker Cache Expiration

Open Kikobeats opened this issue 8 years ago • 2 comments

I noted after sucesive improvements at https://mythbusters.js.org the website cached a old version of the web and it's necessary a hard refresh for fetch the new version.

Could be interesting implement a way to auto-expire the cache after a period of time (for example, 5 day).

Kikobeats avatar Jun 09 '17 08:06 Kikobeats

@Kikobeats Could you update the docsify code on your end and check if problems still persist? You don't need the extra sw js file anymore. Compare the ./docs folder and the contained ./docs/index.html file here.

jrappen avatar Oct 27 '17 21:10 jrappen

This would be good to make configurable as an option that can be passed to the service worker perhaps. We should make a service worker file be consumable instead of it being embedded in the docs.

trusktr avatar Jun 21 '20 07:06 trusktr