spatie/laravel-responsecache
Caches full Laravel responses to speed up apps. Automatically stores successful GET HTML/JSON for a configurable time and serves cached output on repeat requests. Supports per-route middleware, custom rules, and optional stale-while-revalidate style caching.
The package is a native Laravel solution leveraging middleware and Laravel's cache system, making it highly aligned with the framework's architecture. It integrates seamlessly with standard Laravel components like route middleware, model events, and cache drivers (Redis/Memcached preferred for tag support). Integration feasibility is high due to straightforward Composer installation and minimal configuration—typical use cases require adding middleware or attributes to routes with clear examples in documentation. Key technical risks include potential cache bloat from high-variability URLs (e.g., query parameters), cache invalidation complexity for dynamic user-specific content (though the package handles user-specific caches via session IDs), and dependency on cache
How can I help you explore Laravel packages today?