Closed
Description
Hey!
It seems since the last changes, I'm not able to don't consider headers at all.
Here, my set up:
$this->client = new PluginClient(new Client(), [
new ErrorPlugin(),
new CachePlugin(
new FilesystemAdapter('', 0, __DIR__.'/cache'),
new GuzzleStreamFactory(),
['respect_cache_headers' => false]
),
]);
After debuggint it, I would update https://github.com/php-http/cache-plugin/blob/master/src/CachePlugin.php#L78 by:
if (!$this->config['respect_cache_headers'] || (isset($data['expiresAt']) && time() < $data['expiresAt'])) {
WDYT?
Metadata
Metadata
Assignees
Labels
No labels