Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /home/picotech/domains/classify.picotech.app/public_html/public/ drwxr-xr-x |
Viewing file: Select action/file-type: const preLoad = function () { return caches.open("offline").then(function (cache) { // caching index and important routes return cache.addAll(filesToCache); }); }; self.addEventListener("install", function (event) { event.waitUntil(preLoad()); }); const filesToCache = [ '/', '/offline.html' ]; const checkResponse = function (request) { return new Promise(function (fulfill, reject) { fetch(request).then(function (response) { if (response.status !== 404) { fulfill(response); } else { reject(); } }, reject); }); }; const addToCache = function (request) { return caches.open("offline").then(function (cache) { return fetch(request).then(function (response) { return cache.put(request, response); }); }); }; const returnFromCache = function (request) { return caches.open("offline").then(function (cache) { return cache.match(request).then(function (matching) { if (!matching || matching.status === 404) { return cache.match("offline.html"); } else { return matching; } }); }); }; self.addEventListener("fetch", function (event) { event.respondWith(checkResponse(event.request).catch(function () { return returnFromCache(event.request); })); // if(!event.request.url.startsWith('http')){ // event.waitUntil(addToCache(event.request)); // } if (event.request.url.startsWith("chrome-extension://")) { return; } }); |
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]-- |