fix: security hardening + code quality improvements (401 retry limit, UUID crypto, debounce this-bug, deduplicate CSS/helpers, optimize SW precache)

This commit is contained in:
2026-02-08 13:53:23 +01:00
parent c66c80adcc
commit 9f48e073b8
11 changed files with 41 additions and 152 deletions

View File

@@ -1,4 +1,4 @@
const CACHE_NAME = 'dgray-v49';
const CACHE_NAME = 'dgray-v50';
const STATIC_ASSETS = [
'/',
'/index.html',
@@ -45,20 +45,9 @@ const STATIC_ASSETS = [
'/js/components/location-map.js',
'/js/components/pow-captcha.js',
// Pages
// Pages (critical only — lazy-loaded pages are runtime-cached via stale-while-revalidate)
'/js/components/pages/page-home.js',
'/js/components/pages/page-listing.js',
'/js/components/pages/page-create.js',
'/js/components/pages/page-favorites.js',
'/js/components/pages/page-my-listings.js',
'/js/components/pages/page-messages.js',
'/js/components/pages/page-settings.js',
'/js/components/pages/page-not-found.js',
'/js/components/pages/page-notifications.js',
'/js/components/pages/page-privacy.js',
'/js/components/pages/page-terms.js',
'/js/components/pages/page-about.js',
'/js/components/pages/page-contact.js',
// Vendor
'/js/vendor/cropper.min.js',