tractatus/public
TheFlow 6aed0dd275 fix(cache): prevent caching of admin files and API responses
CRITICAL FIX: Automatic cache invalidation for admin JavaScript files.

Root cause: Service worker and browser cache serving stale admin files
even after deploying fixes. Users had to manually clear cache daily.

Changes:
1. Service Worker (v0.1.2):
   - Added NEVER_CACHE_PATHS for /js/admin/, /api/, /admin/
   - These paths now ALWAYS fetch from network, never cache
   - Bumped version to trigger cache clear on all clients

2. Server-side Cache Control:
   - Added Cache-Control: no-store headers for admin/API paths
   - Added Pragma: no-cache and Expires: 0 for belt-and-suspenders
   - Prevents browser AND proxy caching

This ensures:
- Admin JavaScript updates deploy immediately
- API responses are never stale
- No more manual cache clearing required

Testing:
- Admin files will now always be fresh from server
- Service worker will auto-update to v0.1.2 on next visit
- Browsers will respect no-cache headers going forward

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 18:34:06 +13:00
..
.well-known fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
about fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
admin chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
css fix(css): correct justify-center syntax error in loading overlay 2025-10-24 12:41:53 +13:00
demos fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
docs fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
downloads fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
fonts fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
images fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
js fix(architecture): interactive diagram SVG click handler timing issues 2025-10-24 18:22:15 +13:00
koha feat(crm): complete Phase 3 multi-project CRM + critical bug fixes 2025-10-24 18:10:14 +13:00
locales fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
about.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
api-reference.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
architecture.html fix(cache): update architecture.html cache version for interactive diagram 2025-10-24 18:28:42 +13:00
blog-post.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
blog.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
case-submission.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
check-version.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
docs-viewer.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
docs.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
faq.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
favicon-new.svg fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
favicon.ico fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
favicon.svg fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
implementer.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
implementer.html.backup fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
index.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
koha.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
leader.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
manifest.json fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
media-inquiry.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
media-triage-transparency.html fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
privacy.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
researcher.html chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00
service-worker.js fix(cache): prevent caching of admin files and API responses 2025-10-24 18:34:06 +13:00
test-pressure-chart.html fix(submissions): restructure Economist package and fix article display 2025-10-24 08:47:42 +13:00
version.json chore(cache): bump cache version for newsletter DELETE fix 2025-10-24 18:25:26 +13:00