createHandlerBoundToURL.d.ts 815 B

1234567891011121314151617181920
  1. import './_version.js';
  2. /**
  3. * Helper function that calls
  4. * {@link PrecacheController#createHandlerBoundToURL} on the default
  5. * {@link PrecacheController} instance.
  6. *
  7. * If you are creating your own {@link PrecacheController}, then call the
  8. * {@link PrecacheController#createHandlerBoundToURL} on that instance,
  9. * instead of using this function.
  10. *
  11. * @param {string} url The precached URL which will be used to lookup the
  12. * `Response`.
  13. * @param {boolean} [fallbackToNetwork=true] Whether to attempt to get the
  14. * response from the network if there's a precache miss.
  15. * @return {module:workbox-routing~handlerCallback}
  16. *
  17. * @memberof module:workbox-precaching
  18. */
  19. declare function createHandlerBoundToURL(url: string): import("workbox-core/types").RouteHandlerCallback;
  20. export { createHandlerBoundToURL };