guzzle-cache-middleware icon indicating copy to clipboard operation
guzzle-cache-middleware copied to clipboard

A HTTP Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack.

Results 41 guzzle-cache-middleware issues
Sort by recently updated
recently updated
newest added

doctrine/cache is intended to be abandoned, we should drop the suggest and related code to rely on psr/cache-implementations instead to provide up-to-date examples.

Hello, Do you know if guzzle/cache/middleware is compatible with Guzzle7? Specially using Pool for asynchronous requests. Because I face this issue, even if I do not know at this time...

Hi! I have two layers of cache: memory and redis: ``` ... $stack->push( new CacheMiddleware(new GreedyCacheStrategy(new VolatileRuntimeStorage(), 0)), 'identity-map' ); $stack->push( new CacheMiddleware(new GreedyCacheStrategy(new Psr16CacheStorage($redisCache), 60)), 'cache' ); ... ```...

enhancement

Due to its name, the `stale-while-revalidate` Cache-Control extension might suggest that it only applies to revalidation requests. However, looking at https://tools.ietf.org/html/rfc5861#section-3... > 3. The stale-while-revalidate Cache-Control Extension > When present...

waiting

Whenever I use this middleware when combined with the [`sink`](http://guzzle.readthedocs.io/en/latest/request-options.html#sink) option empty files are written: ```php $client->get($uri, ['sink' => "$dir/$uri"]); ``` The file `$dir/$uri` is created but has no content.

Hi! It looks like my cache lasts for a very short time. This is how I define my cache middleware: ``` $stack = HandlerStack::create(); $stack->push( new CacheMiddleware( new PrivateCacheStrategy( new...

Guzzle 6 has a good support for logging. Configuring HTTP client, you can easily log a lot of details. When this middleware is used, it's impossible to hook into request...

hacktoberfest

Per: https://github.com/Kevinrob/guzzle-cache-middleware/blob/e1430d9f7e10f6b0998be6195541d4449079b6e9/src/Strategy/PrivateCacheStrategy.php#L33-L45 and: https://github.com/Kevinrob/guzzle-cache-middleware/blob/e1430d9f7e10f6b0998be6195541d4449079b6e9/src/Strategy/PrivateCacheStrategy.php#L66-L69 ...the caching middleware does not cache a `201` response. I believe this is not compliant with the RFC on caching, and should in fact be cached...

bug

It seems that there's no mechanism in place to purge old/expired cache entries. I'm using the Doctrine file system storage adaptor and I've run in to a situation where the...

Hallo, I use a delay in the guzzle config to avoid `429 Too Many Requests` errors. ``` $config = [ 'handler' => $stack, 'delay' => 700, ]; ``` That delay...

waiting