Commit ec10a70
feat(agent): add 24-hour cache for agent endpoint
The .agent endpoint uses AI generation (GPT-4o-mini) which is expensive.
Adding caching reduces API costs and improves response times for repeated
requests.
Cache settings:
- s-maxage=86400: CDN caches for 24 hours
- stale-while-revalidate=3600: Serve stale content for 1 hour while
revalidating in the background
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0cdfd92 commit ec10a70
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| |||
0 commit comments