最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

svelte - Get used resources of page on compile-time - Stack Overflow

programmeradmin0浏览0评论

I am building a PWA and need an "You are offline"-Page. I've built an endpoint at /offline with images and css and it looks good. I registered the page it in the service worker to precache the offline page and the page itself gets cached, but the associated resources like images and css not.

Now my question is how can I get a list of URLs required for the /offline page that I can use to precache it in the service worker? Or is there another way to solve this issue?

Thanks!

发布评论

评论列表(0)

  1. 暂无评论