You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 9, 2021. It is now read-only.
缓存
缓存策略应该是
networkFirst
网络请求优先,而不是cacheFirst
缓存优先。这样可以保证在每次打开页面时首先请求网络验证缓存是否需要更新。否则只要本地存在缓存时,都不会请求源服务器,即使源服务器已经更新,client
端仍会优先使用缓存。所以缓存策略应该是network first
。以 workbox 为例:
The text was updated successfully, but these errors were encountered: