Created
October 2, 2017 14:13
-
-
Save webmaxru/1613bd4d97710f92d439945c1eb920a0 to your computer and use it in GitHub Desktop.
ngsw - configuration file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"index": "/index.html", | |
"appData": { | |
"test": true | |
}, | |
"assetGroups": [{ | |
"name": "appshell", | |
"resources": { | |
"files": [ | |
"/assets/**/*", | |
"!/ngsw-worker.js" | |
], | |
"versionedFiles": [ | |
"/**/*.html", | |
"/**/*.js", | |
"/**/*.css" | |
], | |
"urls": [ | |
"https://fonts.googleapis.com/css?family=Material+Icons", | |
"https://fonts.gstatic.com/s/materialicons/v29/2fcrYFNaTjcS6g4U3t-Y5UEw0lE80llgEseQY3FEmqw.woff2" | |
] | |
} | |
}], | |
"dataGroups": [{ | |
"name": "api-freshness", | |
"urls": [ | |
"/timeline" | |
], | |
"cacheConfig": { | |
"maxSize": 100, | |
"maxAge": "3d", | |
"timeout": "1m", | |
"strategy": "freshness" | |
} | |
}, | |
{ | |
"name": "api-performance", | |
"urls": [ | |
"/favorites" | |
], | |
"cacheConfig": { | |
"maxSize": 100, | |
"maxAge": "3d", | |
"timeout": "1m", | |
"strategy": "performance" | |
} | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to do "add to homescreen" using Angular service-worker?