Skip to content

createHandlerBoundToURL ​

Function @vite-pwa/workbox-swkit/precaching
ts
createHandlerBoundToURL(url: string): RouteHandlerCallback

Helper function that calls PrecacheController#createHandlerBoundToURL on the default PrecacheController instance.

If you are creating your own PrecacheController, then call the PrecacheController#createHandlerBoundToURL on that instance, instead of using this function.

Parameters ​

  • url – The precached URL which will be used to lookup the Response. response from the network if there's a precache miss.

Returns:

Released under the MIT License.