Make APICache always update entries correctly.
Review Request #6772 — Created Jan. 14, 2015 and submitted
The
APICache
now properly updates entries when theLast-Modifed
and/orETag
headers change and theVary
header does not.
Previously, the entries would only be updated if theVary
header
was updated.Update the
MockUrlOpener
test harness to compare the provided
If-Modified-Since
header against theLast-Modified
header.Added a test for the
Cache-Control: no-cacche
andLast-Modified
header combination. It makes additional requests after the
Last-Modified
header is modified to ensure that the cache entry is
updated correctly.Updated the test for the
Cache-Control: no-cache
andETag
header
combination to make another request after theETag
is modified to
verify that the cache entry is updated.
Ran unit tests.