Kyle Mathews
Kyle Mathews
Ooops. I guess my quick edit was too quick.
I had an issue where I couldn't trust the `cache-control` headers so edited them before saving the cached response https://github.com/gatsbyjs/gatsby/pull/32012
For cacheMaps, is there an option for a function for matching? For Gatsby, I'm planning on having a AppShell per layout. To match routes to layout AppShells, I'd need to...
Oh... I thought that was some sort of redirect thing :-) Does it have the same `requestType` option? To keep things simple, why not let `matchPath` take a function as...
> Should it be always array or it should be this too: matchUrl: 'myfile.html'? I find these types of APIs intuitive. Perhaps instead of `matchPath` use `matchOwnDomain`?
Yeah that sounds better — would love to see some examples of this fleshed out!
There's also the [path-to-exp library](https://github.com/pillarjs/path-to-regexp) that many are familiar with. That's what [sw-toolbox](https://googlechrome.github.io/sw-toolbox/docs/master/tutorial-api) uses.
Is it not compatible with any of them? My understanding is that some terminals just don't support certain advanced features.
I just was bit by this. Coming from underscore.js I assumed this would be built-in already.
I can confirm @Dmitry-N-Medvedev's solution works. Would be good to add to docs.