WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
148137
WebKit may keep outdated entry in the disk cache after a reload
https://bugs.webkit.org/show_bug.cgi?id=148137
Summary
WebKit may keep outdated entry in the disk cache after a reload
Chris Dumez
Reported
2015-08-18 13:50:20 PDT
WebKit may keep outdated entry in the disk cache after a reload in the following scenario: 1. We have an entry in the cache 2. The user reloads 3. We get a fresh resource from the network but this one is not cacheable In this case, we should probably remove the cached entry to make it doesn't get used in the future.
Attachments
Patch
(12.05 KB, patch)
2015-08-18 16:43 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(12.15 KB, patch)
2015-08-19 09:04 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2015-08-18 13:50:50 PDT
rdar://problem/22299547
Chris Dumez
Comment 2
2015-08-18 16:43:24 PDT
Created
attachment 259320
[details]
Patch
Antti Koivisto
Comment 3
2015-08-19 07:06:18 PDT
Comment on
attachment 259320
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=259320&action=review
r=me
> Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.cpp:519 > // For simplicity we also don't reduce m_approximateSize on removals. > // The next synchronization will update everything. > > + removeFromPendingWriteOperations(key); > + > serialBackgroundIOQueue().dispatch([this, key] {
You should also add bloom filter check here. Otherwise every non-cacheable resource generates disk I/O.
Chris Dumez
Comment 4
2015-08-19 09:04:58 PDT
Created
attachment 259373
[details]
Patch
WebKit Commit Bot
Comment 5
2015-08-19 09:50:59 PDT
Comment on
attachment 259373
[details]
Patch Clearing flags on attachment: 259373 Committed
r188640
: <
http://trac.webkit.org/changeset/188640
>
WebKit Commit Bot
Comment 6
2015-08-19 09:51:06 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug