php-http/cache-plugin
PSR-6 cache plugin for HTTPlug clients. Automatically caches HTTP responses (and can serve stale on error) with configurable cache strategies, TTL, and cache key generation. Drop it into your plugin chain to cut latency and reduce repeated requests.
StreamFactory, only PSR-17 StreamFactoryInterface is now supported.null and use 0 explicitly to calculate expirationnull.StreamFactoryInterface.blacklisted_paths option, which takes an array of strings (regular expressions) and allows to define paths, that shall not be cached in any case.cache_listeners option, which takes an array of CacheListeners, who get notified and can optionally act on a Response based on a cache hit or miss event. An implementation, AddHeaderCacheListener, is provided which will add an X-Cache header to the response with this information.See Change log for changes.
See Change log for changes.
See Change log for changes.
Plugin separated from the main plugins repo
How can I help you explore Laravel packages today?