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?
I have a question about routing.
I want to change cache strategy between js files, css files, and other.
Is it by design? What is the specification of route priority?