Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

dontCacheBustUrlsMatching: /./ not working. #219

Closed
Hosar opened this issue Nov 24, 2016 · 2 comments
Closed

dontCacheBustUrlsMatching: /./ not working. #219

Hosar opened this issue Nov 24, 2016 · 2 comments

Comments

@Hosar
Copy link

Hosar commented Nov 24, 2016

Even when I set: dontCacheBustUrlsMatching: /./ sw-precache still generate the precacheConfig as follow
[["css/main3cb4f06fd9e705bea97eb1bece31fd6d.css","3cb4f06fd9e705bea97eb1bece31fd6d"]].

Do I need to do something else to do not generate cache-busting parameter ?

@jeffposnick
Copy link
Contributor

What you're seeing is expected. sw-precache still needs to know how to version the URL.

What you should not be seeing is an _sw-prechace=<hash> parameter appended to the end of the URL when the cache is being populated. You're telling sw-precache that you don't want that parameter added because you're fine if the HTTP cache is used to fulfill the precaching request.

Here's an example of what you should not be seeing:
screen shot 2016-11-28 at 11 26 53 am

Instead, you should see requests with the gear icon next to them that don't end in _sw-prechace=<hash>.

@Hosar
Copy link
Author

Hosar commented Nov 28, 2016

Ok got it. Thanks for clarify.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants