Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

ignore specified query parameters when using defaultCacheStrategy #98

Open
@liabru

Description

Description

When using default-cache-strategy with a cache-config-file with an array of precache paths, it seems that these do not get matched if there is a query string on the request. This is makes sense but I'd like to be able to specify certain query strings to be ignored when matching, e.g. utm_-prefixed parameters or version strings.

I experimented and read the docs but I couldn't find any mention of this (my apologies if this already exists), could you please advise?

(related: it seems the sw-precache project has this feature)

Expected outcome

Specified query strings should be ignored when matching default cache strategy.

Actual outcome

Query strings cause cached paths not to match.

Live Demo

N/A

Steps to reproduce

See description.

Browsers Affected

All

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