kevinrob/guzzle-cache-middleware
RFC 7234–compliant HTTP cache middleware for Guzzle 6+ using a HandlerStack. Improve API call performance with transparent caching. Supports PSR-7 and multiple storages: Laravel cache, Flysystem, PSR-6/16, and WordPress object cache.
Adopt if:
Cache-Control, ETag, Last-Modified handling).Look elsewhere if:
GuzzleHttp\Cache\CacheMiddleware or symfony/cache).For Executives: "This package lets us cache API responses like a CDN for our backend—cutting costs by 30–50% for external APIs and slashing latency for internal services. For example, if our dashboard makes 100 calls to Stripe per page load, we’d reduce those to ~10 after caching. It’s a no-code solution that works with our existing Laravel/Redis stack, with minimal dev effort. ROI: Lower cloud bills + faster page loads = happier users and ops teams."
For Engineers: *"This is a battle-tested, RFC-compliant Guzzle middleware for HTTP caching with zero lock-in—supports Laravel Cache, PSR-6, Flysystem, or even WordPress. Key perks:
PrivateCacheStrategy for auth-sensitive data, PublicCacheStrategy for shared assets, or GreedyCacheStrategy for APIs with broken headers./api/payments and /api/weather endpoints—expect 80% reduction in external API calls."*How can I help you explore Laravel packages today?