Skip to content

ignoreURLParametersMatching not regex in cacheOptions #281

@danieltamas

Description

@danieltamas

Version

v3.0.0-beta.19

Reproduction link

https://codesandbox.io/s/cranky-grothendieck-y4kyh

Steps to reproduce

in nuxt.config.js edit the pwa to contain ignoreURLParametersMatching ( this will be added at the option to precaching )

pwa: {
        cacheOptions: {
            cacheId: 'test',
            directoryIndex: '/',
            revision: timestamp,
            ignoreURLParametersMatching: [/.*/]
        },
}

npm run build

What is expected ?

ignoreURLParametersMatching: [/.*/]

What is actually happening?

ignoreURLParametersMatching: [{}]

Additional comments?

This breaks the preCache functionality when query strings exist in the requested file, throwing a 404 error from the service worker.

This bug report is available on Nuxt community (#c208)

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