Skip to content

Instantly share code, notes, and snippets.

@whisher
Created October 12, 2018 12:07

Revisions

  1. whisher created this gist Oct 12, 2018.
    48 changes: 48 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,48 @@
    {
    "index": "/index.html",
    "assetGroups": [{
    "name": "app",
    "installMode": "prefetch",
    "resources": {
    "files": [
    "/favicon.ico",
    "/index.html",
    "/*.css",
    "/*.js"
    ]
    }
    }, {
    "name": "assets",
    "installMode": "lazy",
    "updateMode": "prefetch",
    "resources": {
    "files": [
    "/assets/**"
    ]
    }
    }, {
    "name": "externals",
    "installMode": "prefetch",
    "updateMode": "prefetch",
    "resources": {
    "urls": [
    "https://ajax.googleapis.com/**",
    "https://fonts.googleapis.com/**",
    "https://fonts.gstatic.com/**",
    "https://blogial-server.herokuapp.com/images/**"
    ]
    }
    }],
    "dataGroups": [{
    "name": "rest-api",
    "urls": [
    "https://blogial-server.herokuapp.com/api/**"
    ],
    "cacheConfig": {
    "strategy": "freshness",
    "maxSize": 100,
    "maxAge": "1h",
    "timeout": "5s"
    }
    }]
    }