Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
quiz1 /
node_modules /
workbox-recipes /
[ HOME SHELL ]
Name
Size
Permission
Action
build
[ DIR ]
dr-xr-xr-x
src
[ DIR ]
dr-xr-xr-x
LICENSE
1.03
KB
-rw-rw-rw-
README.md
116
B
-rw-rw-rw-
_version.d.ts
0
B
-rw-rw-rw-
_version.js
92
B
-rw-rw-rw-
_version.mjs
71
B
-rw-rw-rw-
googleFontsCache.d.ts
813
B
-rw-rw-rw-
googleFontsCache.js
2.13
KB
-rw-rw-rw-
googleFontsCache.mjs
38
B
-rw-rw-rw-
imageCache.d.ts
1.21
KB
-rw-rw-rw-
imageCache.js
2.2
KB
-rw-rw-rw-
imageCache.mjs
32
B
-rw-rw-rw-
index.d.ts
747
B
-rw-rw-rw-
index.js
662
B
-rw-rw-rw-
index.mjs
27
B
-rw-rw-rw-
offlineFallback.d.ts
830
B
-rw-rw-rw-
offlineFallback.js
2.41
KB
-rw-rw-rw-
offlineFallback.mjs
37
B
-rw-rw-rw-
package.json
931
B
-rw-rw-rw-
pageCache.d.ts
1.04
KB
-rw-rw-rw-
pageCache.js
1.9
KB
-rw-rw-rw-
pageCache.mjs
31
B
-rw-rw-rw-
staticResourceCache.d.ts
1.07
KB
-rw-rw-rw-
staticResourceCache.js
1.95
KB
-rw-rw-rw-
staticResourceCache.mjs
41
B
-rw-rw-rw-
tsconfig.json
445
B
-rw-rw-rw-
tsconfig.tsbuildinfo
32.75
KB
-rw-rw-rw-
warmStrategyCache.d.ts
479
B
-rw-rw-rw-
warmStrategyCache.js
542
B
-rw-rw-rw-
warmStrategyCache.mjs
39
B
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : googleFontsCache.js
/* Copyright 2020 Google LLC Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT. */ import { registerRoute } from 'workbox-routing/registerRoute.js'; import { StaleWhileRevalidate } from 'workbox-strategies/StaleWhileRevalidate.js'; import { CacheFirst } from 'workbox-strategies/CacheFirst.js'; import { CacheableResponsePlugin } from 'workbox-cacheable-response/CacheableResponsePlugin.js'; import { ExpirationPlugin } from 'workbox-expiration/ExpirationPlugin.js'; import './_version.js'; /** * An implementation of the [Google fonts]{@link https://developers.google.com/web/tools/workbox/guides/common-recipes#google_fonts} caching recipe * * @memberof workbox-recipes * * @param {Object} [options] * @param {string} [options.cachePrefix] Cache prefix for caching stylesheets and webfonts. Defaults to google-fonts * @param {number} [options.maxAgeSeconds] Maximum age, in seconds, that font entries will be cached for. Defaults to 1 year * @param {number} [options.maxEntries] Maximum number of fonts that will be cached. Defaults to 30 */ function googleFontsCache(options = {}) { const sheetCacheName = `${options.cachePrefix || 'google-fonts'}-stylesheets`; const fontCacheName = `${options.cachePrefix || 'google-fonts'}-webfonts`; const maxAgeSeconds = options.maxAgeSeconds || 60 * 60 * 24 * 365; const maxEntries = options.maxEntries || 30; // Cache the Google Fonts stylesheets with a stale-while-revalidate strategy. registerRoute(({ url }) => url.origin === 'https://fonts.googleapis.com', new StaleWhileRevalidate({ cacheName: sheetCacheName, })); // Cache the underlying font files with a cache-first strategy for 1 year. registerRoute(({ url }) => url.origin === 'https://fonts.gstatic.com', new CacheFirst({ cacheName: fontCacheName, plugins: [ new CacheableResponsePlugin({ statuses: [0, 200], }), new ExpirationPlugin({ maxAgeSeconds, maxEntries, }), ], })); } export { googleFontsCache };
Close