{
  "$schema": "./node_modules/@angular/service-worker/config/schema.json",
  "index": "/index.html",
  "dataGroups": [
    {
      "name": "API lookups",
      "cacheConfig": {
        "maxAge": "1h",
        "strategy": "performance",
        "maxSize": 1000
      },
      "urls": [
        "https://api.yourcausegrantsqa.com/api/lookup/**/*",
        "https://api.yourcausegrantsuat.com/api/lookup/**/*",
        "https://api.yourcausegrants.com/api/lookup/**/*"
      ]
    },
    {
      "name": "i18n",
      "cacheConfig": {
        "maxAge": "1h",
        "strategy": "performance",
        "maxSize": 0
      },
      "urls": [
        "/assets/i18n/**/*"
      ]
    }
  ],
  "assetGroups": [
    {
      "name": "app",
      "installMode": "lazy",
      "updateMode": "prefetch",
      "resources": {
        "files": [
          "/favicon.ico",
          "/index.html",
          "/manifest.json",
          "/*.css",
          "/*.js",
          "/manifest.webmanifest"
        ]
      }
    }, {
      "name": "assets",
      "installMode": "lazy",
      "updateMode": "prefetch",
      "resources": {
        "files": [
          "/assets/**",
          "/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
        ]
      }
    }
  ]
}
