在上述示例中,ngsw-config.json 文件定义了两个主要部分:assetGroups和dataGroups。 assetGroups 用于定义需要缓存的文件。在此示例中,app 组包含需要预取(prefetch)的资源,例如 index.html、favicon.ico 以及所有的 CSS 和 JavaScript 文件。 dataGroups 用于配置需要从网络中缓存的数据。在此示例中,api-performance ...
总之,ngsw-config.json文件是Angular Service Worker的配置文件,允许开发者定义Service Worker在应用中的行为,包括缓存策略、需要缓存的文件、数据缓存、更新策略等。通过这个文件,开发者可以定制化地配置Service Worker,以实现更好的离线体验和性能优化。
在这里,strategy设置为performance,表示采用性能优化的策略进行缓存更新。 总体而言,ngsw-config.json文件是用于配置 Angular Service Worker 的文件,其中定义了需要被缓存的资源组以及数据缓存的行为。这有助于优化应用程序的性能和提供离线浏览体验。 前端ecmascript-6 html5angularchrome-devtools...
Angular-based calculator for factory games like Factorio and Dyson Sphere Program - factoriolab/ngsw-config.json at v3.0.8 · factoriolab/factoriolab
Angular-based calculator for factory games like Factorio and Dyson Sphere Program - factoriolab/ngsw-config.json at main · kurax/factoriolab
master 此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库:https://github.com/NG-ZORRO/ng-zorro-antd 克隆/下载 git config --global user.name userName git config --global user.email userEmail ng-zorro / ngsw-config.json ngsw-config.json1.00 KB ...
ngsw-config.json 1.00 KB 一键复制 编辑 原始数据 按行查看 历史 Hsuan Lee 提交于 4年前 . docs: ignore server-side redirected URLs in the SW (#5893) 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 { "index": "/index.html", "assetGroups": [ { "name...
一个典型的ngsw.json例子: {"configVersion":1,"index":"/index.html","assetGroups":[{"name":"app","installMode":"prefetch","updateMode":"prefetch","urls":["/favicon.ico","/index.html","/inline.5646543f86fbfdc19b11.bundle.js","/main.3bb4e08c826e33bb0fca.bundle.js","/polyfills....
一个典型的ngsw.json例子: {"configVersion":1,"index":"/index.html","assetGroups":[{"name":"app","installMode":"prefetch","updateMode":"prefetch","urls":["/favicon.ico","/index.html","/inline.5646543f86fbfdc19b11.bundle.js","/main.3bb4e08c826e33bb0fca.bundle.js","/polyfills....
一个典型的ngsw.json例子: {"configVersion":1,"index":"/index.html","assetGroups":[{"name":"app","installMode":"prefetch","updateMode":"prefetch","urls":["/favicon.ico","/index.html","/inline.5646543f86fbfdc19b11.bundle.js","/main.3bb4e08c826e33bb0fca.bundle.js","/polyfills....