|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
969 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | /*
|
|---|
| 2 | Copyright 2019 Google LLC
|
|---|
| 3 |
|
|---|
| 4 | Use of this source code is governed by an MIT-style
|
|---|
| 5 | license that can be found in the LICENSE file or at
|
|---|
| 6 | https://opensource.org/licenses/MIT.
|
|---|
| 7 | */
|
|---|
| 8 | import { getOrCreatePrecacheController } from './utils/getOrCreatePrecacheController.js';
|
|---|
| 9 | import './_version.js';
|
|---|
| 10 | /**
|
|---|
| 11 | * Helper function that calls
|
|---|
| 12 | * {@link PrecacheController#matchPrecache} on the default
|
|---|
| 13 | * {@link PrecacheController} instance.
|
|---|
| 14 | *
|
|---|
| 15 | * If you are creating your own {@link PrecacheController}, then call
|
|---|
| 16 | * {@link PrecacheController#matchPrecache} on that instance,
|
|---|
| 17 | * instead of using this function.
|
|---|
| 18 | *
|
|---|
| 19 | * @param {string|Request} request The key (without revisioning parameters)
|
|---|
| 20 | * to look up in the precache.
|
|---|
| 21 | * @return {Promise<Response|undefined>}
|
|---|
| 22 | *
|
|---|
| 23 | * @memberof workbox-precaching
|
|---|
| 24 | */
|
|---|
| 25 | function matchPrecache(request) {
|
|---|
| 26 | const precacheController = getOrCreatePrecacheController();
|
|---|
| 27 | return precacheController.matchPrecache(request);
|
|---|
| 28 | }
|
|---|
| 29 | export { matchPrecache };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.