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

Question: route priority #247

Open
wilfrem opened this issue May 10, 2017 · 0 comments
Open

Question: route priority #247

wilfrem opened this issue May 10, 2017 · 0 comments

Comments

@wilfrem
Copy link

wilfrem commented May 10, 2017

I have a question about routing.

I want to change cache strategy between js files, css files, and other.

// js files match this route
self.toolbox.router.get("/:path+.js", self.toolbox.networkFirst);
// all files except js files match this route 
self.toolbox.router.get("/:path+.(.*)", self.toolbox.networkOnly);
// no match this route. css files does not match this route
self.toolbox.router.get("/:path+.css", self.toolbox.cacheFirst);

Is it by design?
What is the specification of route priority?

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

1 participant