They use memory while only being useful for history navigation. Disk cache can handle that.
rdar://78035612
Created attachment 429292 [details] patch
Created attachment 429293 [details] patch
Created attachment 429552 [details] patch
Created attachment 429647 [details] patch
Created attachment 429651 [details] patch
Created attachment 429653 [details] patch
Created attachment 429737 [details] patch
Created attachment 429738 [details] patch
Created attachment 429755 [details] patch
Comment on attachment 429755 [details] patch r=me
Comment on attachment 429755 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=429755&action=review > Source/WebCore/ChangeLog:29 > + Remove expired resources without validation headers from the cache if the resource is otherwise deletable. I guess this is the more conservative approach, so maybe it's best. But I wonder if there's any value to expired resources _with_ validation headers in the memory cache? In that case, we're going to do a network round trip to validate anyway, so maybe an IPC round trip to the network process is also fine. Long ago, Dave Hyatt told me that the real win of the memory cache was when it could respond synchronously in the current RunLoop iteration.
Reusing a resource from memory cache may also save decoding for images, parsing for stylesheets, text decoding etc. (though decoded versions are thrown out pretty fast anyway for unreferenced resources). But yeah, it might be time to throw out the entire revalidation logic in memory cache. Would certainly simplify things. Part of its job used to be to cover things networking layer wasn't handling well.
> But yeah, it might be time to throw out the entire revalidation logic in > memory cache. Would certainly simplify things. Part of its job used to be to > cover things networking layer wasn't handling well. I guess that's a topic for another bug. But might be worth trying out at some point.
Committed r278119 (238169@main): <https://commits.webkit.org/238169@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 429755 [details].