Skip to content

feat(service-worker): Support ignoring specific URLs (e.g. for AJAX progress listener, video streaming, range requests, Firebase uploads) #21191

@NgxDev

Description

@NgxDev

I'm submitting a...

[x] Feature request

Current behavior

ServiceWorker breaks AJAX uploads progress reporting.

Expected behavior

AJAX upload progress listener should work.

What is the motivation / use case for changing the behavior?

Progress is needed when handling uploads.
There is an open issue here and it is on this w3c roadmap
Until then, as far as I could read, it would be possible to make this work by checking the event.request.url at the very top of the SW script and simply return if it matches certain urls that would be specified in ngsw-config.json

Environment

Angular version: 5.1.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: service-workerIssues related to the @angular/service-worker packagefeatureIssue that requests a new feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions