spatie/laravel-responsecache
Speed up a Laravel app by caching the entire response observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 98
- Release rhythm 84
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 32.0
- age_days: 4066
- days_rel: 26
- days_push: 13
- n_releases_24m: 17
Adoption not part of the score
2811 stars · 247 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A Laravel package by Spatie that caches entire HTTP responses via middleware, returning cached responses for repeat GET requests without re-running the application. It supports configurable lifetimes, per-user cache separation, flexible stale-while-revalidate caching, and programmatic or artisan cache clearing.
Use cases
- speed up laravel app by caching full http responses
- cache html and json get requests in laravel
- serve stale pages while refreshing cache in background
- clear response cache via artisan command
- cache responses per logged-in user separately
- reduce server load for slow laravel pages
When to choose
- you run a Laravel app with mostly cacheable GET pages
- you want app-level response caching without configuring Varnish or a CDN
- you need fine-grained control over which routes are cached via middleware
- you want stale-while-revalidate behavior for slightly stale pages
When to avoid
- your app serves highly dynamic, personalized, or frequently changing content
- you already use a reverse proxy like Varnish or a CDN for full-page caching
- you need to cache non-GET requests or binary responses
- you are not using Laravel 12+ with PHP 8.4+
Facets
plugin · maturity active
caching middleware http-server web-development backend performance developer-tools php self-hosted laravel-package response-cache http-cache middleware spatie performance laravel web-server
10 sources
- readme: https://github.com/spatie/laravel-responsecache · fetched 2026-08-28 · ce9851214271
- homepage: https://spatie.be/docs/laravel-responsecache/v8/introduction · fetched 2026-08-29 · 027b2e52e5cf
- site_page: https://spatie.be/docs · fetched 2026-08-29 · 08e024d86d95
- site_page: https://spatie.be/about-us · fetched 2026-08-29 · d3cb88e4b34c
- site_page: https://spatie.be/docs/laravel-responsecache/v8 · fetched 2026-08-29 · 3fb7d7c44827
- site_page: https://spatie.be/docs/laravel-responsecache/v8/support-us · fetched 2026-08-29 · 2ad6650fa8f6
- site_page: https://spatie.be/docs/laravel-responsecache/v8/requirements · fetched 2026-08-29 · 308e9f32d0dd
- site_page: https://spatie.be/docs/laravel-responsecache/v8/installation-setup · fetched 2026-08-29 · 9069a40d6d08
- site_page: https://spatie.be/docs/laravel-responsecache/v8/questions-issues · fetched 2026-08-29 · b8af66fea27e
- site_page: https://spatie.be/docs/laravel-responsecache/v8/changelog · fetched 2026-08-29 · c4eb3d01aafe
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| spatie/laravel-responsecache | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="spatie/laravel-responsecache")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem