Skip to content

安装好了,其他功能都正常,就是使用打包文件下载的功能异常 #393

Answered by xhofe
samero asked this question in Q&A
Discussion options

You must be logged in to vote

Use https if you can. That way you don't have to open the man in the middle in a popup to install the service worker from another secure context. Popups are often blocked but if you can't it's best that you initiate the createWriteStream on user interaction. Even if you don't have any data ready - this is so that you can get around the popup blockers. (In secure context this don't matter) Another benefit of using https is that the mitm-iframe can ping the service worker to prevent it from going idle. (worker goes idle after 30 sec in firefox, 5 minutes in blink) but also this won't mater if the browser supports transferable streams throught postMessage since service worker don't have to …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@samero
Comment options

Answer selected by xhofe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
finished Already over
2 participants