Changeset 76f0e61 in Klonkt for src/server.js


Ignore:
Timestamp:
06/26/2026 03:32:31 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
b8bbe77
Parents:
a036251
Message:

fix(ios pwa): force masthead safe-area inline + detect standalone + bump SW

The PWA kept serving a stale shell so the env-based fix never reached it. Now: detect
standalone explicitly (larger Dynamic-Island fallback), set --ios-safe-top AND force the
masthead padding inline (survives a stale cached stylesheet), re-apply after htmx chrome
swaps. Bumped the service worker cache (v11 -> v12) so the PWA refreshes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/server.js

    ra036251 r76f0e61  
    395395  res.set('Cache-Control', 'no-cache');
    396396  res.send(`
    397 const CACHE_VERSION = 'pcms-v11-' + new Date().toISOString().split('T')[0];
     397const CACHE_VERSION = 'pcms-v12-' + new Date().toISOString().split('T')[0];
    398398self.addEventListener('install', e => {
    399399  e.waitUntil(caches.open(CACHE_VERSION).then(c => c.addAll(['/'])));
Note: See TracChangeset for help on using the changeset viewer.