On OS X atime updates automatically so calling Storage::traverse() always ends up updating all access times. We update mtime manually on successful cache retrieve only.
Created attachment 249701 [details] patch
Comment on attachment 249701 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=249701&action=review > Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.cpp:592 > + // Modificiation time is updated on read. Don't use access time since OS may update it automatically on any read. Typo: Modificiation Comment is unclear. When you say “is updated on read” you mean “is updated by WebKit cache code when it reads an item from the cache”, but it sounds like “is updated by the file system when any process reads the file”.
https://trac.webkit.org/r182124
Mild LOL at this bug. atime rarely does what anyone really wants :|
Wish there was at least a way to disable automatic atime updates for cache files. It is semantically nice.