The catch-all else clause in the cache-control middleware was overriding the security middleware's no-cache headers for /api/ paths, setting them to 'public, max-age=3600'. This caused browsers to cache stale API responses, resulting in the blog page showing "0 posts found" despite the API having data. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| config | ||
| controllers | ||
| middleware | ||
| models | ||
| routes | ||
| services | ||
| utils | ||
| server.js | ||