Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Dynamic content from API #185

Open
felek000 opened this issue Oct 2, 2017 · 1 comment
Open

Dynamic content from API #185

felek000 opened this issue Oct 2, 2017 · 1 comment

Comments

@felek000
Copy link

felek000 commented Oct 2, 2017

Hello i want to configure my PWA app. My app works fine except dynamic content api. When online it working fine but when i go offline i get status 503 from serviceWorker. My config
file: ngsw-manifest.json any adicional config needed here ?

{
  "dynamic": {
    "group": [{
      "name": "api",
      "urls": {
        "URLCALL": {
          "match": "prefix"
        }
      },
      "cache": {
        "optimizeFor": "freshness",
        "maxAgeMs": 3600000,
        "maxEntries": 20,
        "strategy": "lru"
      }
    }]
  },
  "external": {
    "urls": [{
      "url": "https://fonts.googleapis.com/icon?family=Material+Icons"
    }]
  }
}

@webmaxru
Copy link
Member

webmaxru commented Oct 3, 2017

Most likely this is "freshness" strategy issue described here: #168

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants