hugo-fixit / FixIt

🔧 A clean, elegant but advanced blog theme for Hugo 一个简洁、优雅且高效的 Hugo 主题
https://fixit.lruihao.cn
MIT License
583 stars 95 forks source link

开启 fingerprint 时,PWA 缓存文件 失效 #298

Open Lruihao opened 1 year ago

Lruihao commented 1 year ago

References:

https://github.com/reuixiy/hugo-theme-meme/blob/master/assets/js/sw.js

  1. https://developers.google.com/web/fundamentals/primers/service-workers
  2. https://developers.google.com/web/fundamentals/instant-and-offline/offline-cookbook
  3. https://googlechrome.github.io/samples/service-worker/
  4. https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers
  5. https://serviceworke.rs/
  6. https://www.youtube.com/watch?v=baSiSIyTGSk
Lruihao commented 8 months ago

另外:未开启 footer 时,fixit.min.svg 打包时不会保留,缓存文件应当去除缓存 fixit.min.svg

Lruihao commented 7 months ago

该问题尚未解决,建议 fingerprint 和 PWA 功能不要同时开启!