// the find
barryvdh/laravel-httpcache
Laravel HTTP Cache
A thin Laravel wrapper around Symfony's HttpCache reverse proxy, letting you add HTTP-level caching to Laravel responses without standing up a separate Varnish or Nginx layer. Useful for read-heavy public pages where you control TTLs and don't need per-user content. ESI support is included for partial-page caching.
Symfony HttpCache underneath is battle-tested and does real RFC-compliant HTTP caching, not a hand-rolled hack. The `SetTtl` route middleware is a clean API — slapping `->middleware('ttl:60')` on a route is about as low-friction as it gets. ESI support lets you cache a slow page while still rendering a fast dynamic fragment, which is genuinely useful. The `CacheKernel::wrap()` approach bypasses the full middleware stack for cache hits, so it's actually faster than caching inside Laravel itself.
File-based storage only — there's no Redis or Memcached backend, so cache purging under load is a filesystem race condition and the store won't survive a deploy that clears the cache dir. Cache invalidation is all-or-nothing: purge a URL or nuke the directory; there's no tag-based invalidation. This is a poor fit for anything with auth or session cookies since Symfony HttpCache's shared cache only applies to public responses — you have to be careful not to accidentally cache authenticated content. 502 stars in 13 years suggests low adoption relative to the problem space; most Laravel shops just use Redis response caching directly or a real CDN, so expect thin community support when you hit edge cases.