Skip to content

Commit

Permalink
Updated comment for storeRelativeAgeDirective method
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Dec 18, 2018
1 parent 77ae8bc commit 13febfb
Showing 1 changed file with 7 additions and 1 deletion.
Expand Up @@ -194,7 +194,13 @@ private function willMakeFinalResponseUncacheable(Response $response)
}

/**
* Stores the cache directive relative to the age of the response.
* Store lowest max-age/s-maxage/expires for the final response.
*
* The response might have been stored in cache a while ago. To keep things comparable,
* we have to subtract the age so that the value is normalized for an age of 0.
*
* If the value is lower than the currently stored value, we update the value, to keep a rolling
* minimal value of each instruction.
*
* @param string $cacheKey
* @param int|null $value
Expand Down

0 comments on commit 13febfb

Please sign in to comment.