Using ignoreUrlParametersMatching has a bug when testing with directoryIndex
#758
Labels
Bug
An issue with our existing, production codebase.
directoryIndex
#758
Library Affected:
workbox-sw
Browser & Platform:
all browsers
Issue or Feature Request Description:
Issue: using option
ignoreUrlParametersMatching
does not work as expected.Expected behavior is for the
service-worker
to serve the following urls//localhost/
&//localhost/?launcher=true
. But//localhost/?launcher=true
doesn't get served from cache despite thelauncher
parameter being added to be ignored.Used options:
I believe this is a bug with the
capture
function which tries to add thedirectoryIndex
and test against the originalurl
instead of thestrippedUrl
.Suspected culprit line is: https://github.com/GoogleChrome/workbox/blob/master/packages/workbox-sw/src/lib/workbox-sw.js#L329
When reporting bugs, please include relevant JavaScript Console logs and links to public URLs at which the issue could be reproduced.
N/A
The text was updated successfully, but these errors were encountered: