|
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:
1.2 KB
|
| Line | |
|---|
| 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 { cacheNames as _cacheNames } from './_private/cacheNames.js';
|
|---|
| 9 | import './_version.js';
|
|---|
| 10 | /**
|
|---|
| 11 | * Get the current cache names and prefix/suffix used by Workbox.
|
|---|
| 12 | *
|
|---|
| 13 | * `cacheNames.precache` is used for precached assets,
|
|---|
| 14 | * `cacheNames.googleAnalytics` is used by `workbox-google-analytics` to
|
|---|
| 15 | * store `analytics.js`, and `cacheNames.runtime` is used for everything else.
|
|---|
| 16 | *
|
|---|
| 17 | * `cacheNames.prefix` can be used to retrieve just the current prefix value.
|
|---|
| 18 | * `cacheNames.suffix` can be used to retrieve just the current suffix value.
|
|---|
| 19 | *
|
|---|
| 20 | * @return {Object} An object with `precache`, `runtime`, `prefix`, and
|
|---|
| 21 | * `googleAnalytics` properties.
|
|---|
| 22 | *
|
|---|
| 23 | * @memberof workbox-core
|
|---|
| 24 | */
|
|---|
| 25 | const cacheNames = {
|
|---|
| 26 | get googleAnalytics() {
|
|---|
| 27 | return _cacheNames.getGoogleAnalyticsName();
|
|---|
| 28 | },
|
|---|
| 29 | get precache() {
|
|---|
| 30 | return _cacheNames.getPrecacheName();
|
|---|
| 31 | },
|
|---|
| 32 | get prefix() {
|
|---|
| 33 | return _cacheNames.getPrefix();
|
|---|
| 34 | },
|
|---|
| 35 | get runtime() {
|
|---|
| 36 | return _cacheNames.getRuntimeName();
|
|---|
| 37 | },
|
|---|
| 38 | get suffix() {
|
|---|
| 39 | return _cacheNames.getSuffix();
|
|---|
| 40 | },
|
|---|
| 41 | };
|
|---|
| 42 | export { cacheNames };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.