403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/arni-solutions.de/web/terminal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/arni-solutions.de/web/terminal/sw.js
/* Terminal-Portal – minimaler Service Worker (macht die App installierbar/standalone).
 * Bewusst schlank: statische Assets cache-first, alles andere direkt aus dem Netz
 * (Terminal-Daten sind tagesaktuell und dürfen nicht veraltet ausgeliefert werden). */
var STATIC_CACHE = 'term-static-v1';

self.addEventListener('install', function (e) {
  e.waitUntil(caches.open(STATIC_CACHE).then(function (c) {
    return c.addAll([
      './assets/patternpad.css', './assets/patternpad.js',
      './assets/modules/monthly_list.css', './assets/modules/monthly_list.js',
      './assets/icons/icon-192.png', './assets/icons/icon-512.png'
    ]).catch(function () {});
  }).then(function () { return self.skipWaiting(); }));
});

self.addEventListener('activate', function (e) {
  e.waitUntil(caches.keys().then(function (keys) {
    return Promise.all(keys.filter(function (k) { return k !== STATIC_CACHE; }).map(function (k) { return caches.delete(k); }));
  }).then(function () { return self.clients.claim(); }));
});

self.addEventListener('fetch', function (e) {
  var req = e.request;
  if (req.method !== 'GET') return;
  var url = new URL(req.url);
  if (url.origin !== self.location.origin) return;
  // Nur statische Assets cachen; PHP/Seiten/AJAX immer aus dem Netz.
  if (/\.(?:css|js|png|jpg|jpeg|svg|webp|ico|woff2?)$/i.test(url.pathname)) {
    e.respondWith(
      caches.open(STATIC_CACHE).then(function (c) {
        return c.match(req).then(function (hit) {
          var net = fetch(req).then(function (res) { if (res && res.status === 200) c.put(req, res.clone()); return res; }).catch(function () { return hit; });
          return hit || net;
        });
      })
    );
  }
});

Youez - 2016 - github.com/yon3zu
LinuXploit