Skip to content

Commit 8f8cc5e

Browse files
committed
Merge branch 'issue-2' of https://github.com/php-http/cache-plugin into issue-2
2 parents 718e6c1 + 47c6b47 commit 8f8cc5e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CachePlugin.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,10 @@ public function handleRequest(RequestInterface $request, callable $next, callabl
8787
return $next($request)->then(function (ResponseInterface $response) use ($cacheItem) {
8888
if (304 === $response->getStatusCode()) {
8989
if (!$cacheItem->isHit()) {
90-
// We do not have the item in cache. We can return the cached response.
90+
/*
91+
* We do not have the item in cache. This plugin did not add If-Modified-Since
92+
* or If-None-Match headers. Return the response from server.
93+
*/
9194
return $response;
9295
}
9396

0 commit comments

Comments
 (0)