commit | 99eefb79fa7c150326290c7b8c3d9973be487605 | [log] [tgz] |
---|---|---|
author | Jesse Wilson <jessewilson@google.com> | Wed Dec 21 18:14:53 2011 -0500 |
committer | Jesse Wilson <jessewilson@google.com> | Wed Dec 21 18:14:53 2011 -0500 |
tree | 6c04cccffc98c2f682fae0b3581a474c37365c7f | |
parent | abe4e615f473b387b1c00a738062a7c428f05a33 [diff] |
Give DiskLruCache an API to edit a snapshot. When an HTTP conditional GET results in a cache hit (ie. 304 Not Modified) we want to update the cache's HTTP headers with the server's latest. Unfortunately prior to this change DiskLruCache had no mechanism to atomically change a snapshot. This change gives us a mechanism to upgrade from a snapshot (read only) to an editor (read/write). Bug: http://b/4460598 Change-Id: I1714fe9ce4291d0c5095460173bc4cf6da6ce9ea