New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] feat: site support pwa #22412
[WIP] feat: site support pwa #22412
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add tests to make sure this change works as expected?
第一次写 pwa 感觉缓存这部分还有点问题,先预览一下试试可不可行。想法来自于昨天你们的面试问题,用户打开网站感觉很慢怎么办... |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1c8efaa:
|
Codecov Report
@@ Coverage Diff @@
## master #22412 +/- ##
=======================================
Coverage 98.08% 98.08%
=======================================
Files 306 306
Lines 7046 7046
Branches 1928 1938 +10
=======================================
Hits 6911 6911
Misses 135 135 Continue to review full report at Codecov.
|
pwa 之前上过,对于经常更新的网站有很多问题。不建议上。 |
是缓存这块经常会出问题吗? |
更新频繁,收益低,缓存命中率能够涵盖绝大部分,Antd 主站大部分静态资源都有 CDN 护体,用户本地文档出问题了排查困难(一旦出问题了就会觉得坑,弃用),而且 Antd 服务器在国外,你用神秘力量试试完全是两个体验 |
PWA 的缓存会导致更新不及时和部分路径变化(新增路径/修改路径)后的 404。 |
@afc163 @shaodahong 看来大家都是踩过坑的人... 那我周末再看下,感觉不行的话我自己关了。 |
🤔 This is a ...
🔗 Related issue link
💡 Background and solution
To make the site support PWA and installed. Users can check site docs offline. Improve experience in terrible network.
📝 Changelog
☑️ Self Check before Merge