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

App loads all assets at initial loading (ngsw-cache-bust) #187

Description

@Halynsky

Problem:

After cleaning cookies (simulating first loading of app with ServiceWorkers) my app loads all files from assets in chain mode one after another. There is no such problem when I turn off service workers.
debug

Versions:

    "@angular/core": "4.4.4",
    "@angular/service-worker": "^1.0.0-beta.16"

ngsw-manifest.json

{
  "routing": {
    "index": "/index.html",
    "routes": {
      "/": {
        "prefix": false
      }
    }
  },

  "dynamic": {
    "groups": [
      {
        "name": "static",
        "urls": {
          "/": {
            "match": "prefix"
          }
        },
        "cache": {
          "optimizerFor": "performance",
          "strategy": "fifo"
        }
      },
      {
        "name": "api",
        "urls": {
          "/api": {
            "match": "prefix"
          }
        },
        "cache": {
          "optimizerFor": "freshness",
          "networkTimeoutMs": "200",
          "maxAgeMs": "1000",
          "strategy": "fifo"
        }
      }
    ]
  }

}

Question:

Is it some bug or specific functionality of ServiceWorkers or some config problem? Can I turn it off?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions