Full document, spreadsheet, slideshow, and diagram tooling
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'fix: Clear-Site-Data header to bust stale Firefox cache' (#158) from fix/clear-site-data into main

scott 6ad00045 40df4d0e

+7 -2
+3
Dockerfile
··· 18 18 19 19 WORKDIR /app 20 20 21 + # better-sqlite3 requires build tools for native compilation 22 + RUN apt-get update && apt-get install -y python3 make g++ && rm -rf /var/lib/apt/lists/* 23 + 21 24 # Install production dependencies + tsx for TypeScript server execution 22 25 COPY package.json package-lock.json ./ 23 26 RUN npm ci --omit=dev && npm install --no-save tsx typescript
+1 -1
package.json
··· 1 1 { 2 2 "name": "tools", 3 - "version": "0.11.0", 3 + "version": "0.11.1", 4 4 "private": true, 5 5 "type": "module", 6 6 "scripts": {
+3 -1
server/index.ts
··· 423 423 // Static files (production build) 424 424 const distPath = path.join(PROJECT_ROOT, 'dist'); 425 425 426 - // Service worker must never be cached by the browser — ensures updates propagate immediately 426 + // Service worker must never be cached — Clear-Site-Data nukes Firefox's HTTP cache 427 + // so stale HTML responses can't prevent SW updates from propagating 427 428 app.get('/sw.js', (_req, res) => { 428 429 res.set('Cache-Control', 'no-cache, no-store, must-revalidate'); 430 + res.set('Clear-Site-Data', '"cache"'); 429 431 res.sendFile(path.join(distPath, 'sw.js')); 430 432 }); 431 433