feat: PWA update strategy with hashed assets and cache control
Move frontend sources to frontend/, build content-hashed assets at deploy, network-first SW for shell/JS, immutable cache for /assets/, version.json update banner, and Cache-Control middleware. Docs in docs/PWA-STRATEGY.md. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+7
-2
@@ -5,12 +5,13 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover">
|
||||
<meta name="theme-color" content="#F12F12">
|
||||
<meta name="description" content="Medikamenten-Erinnerung mit Sarkasmus">
|
||||
<meta name="app-build" content="914619f3">
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<link rel="icon" href="/icon.png" type="image/png">
|
||||
<link rel="apple-touch-icon" href="/icon-192x192.png">
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link href="https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/styles.css">
|
||||
<link rel="stylesheet" href="/assets/styles.993b74f1.css">
|
||||
<title>TakeYourMeds</title>
|
||||
</head>
|
||||
<body>
|
||||
@@ -91,9 +92,13 @@
|
||||
</div>
|
||||
|
||||
<div id="toast" class="toast" hidden></div>
|
||||
<div id="updateBanner" class="updateBanner" hidden>
|
||||
<span>Neue Version verfügbar</span>
|
||||
<button type="button" class="btn btn-primary" id="updateBannerBtn">Aktualisieren</button>
|
||||
</div>
|
||||
<div id="confetti" class="confetti" hidden></div>
|
||||
<div id="easterEgg" class="easterEgg" hidden></div>
|
||||
|
||||
<script type="module" src="/app.js"></script>
|
||||
<script type="module" src="/assets/app.58f3e95c.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user