Changed from aggressive 1-year immutable cache to reasonable 1-hour cache for CSS and JavaScript files during active development phase. Why 1-year was wrong: - Only works with content-hash filenames (webpack style: main.a3f2b1c.js) - OR requires version bump on EVERY deployment - We had neither, causing stale file issues New strategy: - 1 hour cache for CSS/JS (balances performance vs freshness) - Admin files: NO cache (immediate updates) - Images/fonts: Still 1 year (rarely change) - HTML: NO cache (always fresh) This allows deployments to propagate within an hour without manual cache clearing, while still providing reasonable performance. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| config | ||
| controllers | ||
| middleware | ||
| models | ||
| routes | ||
| services | ||
| utils | ||
| server.js | ||