WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
143348
[WK2][NetworkCache] Drop HTTP method from NetworkCache::Key
https://bugs.webkit.org/show_bug.cgi?id=143348
Summary
[WK2][NetworkCache] Drop HTTP method from NetworkCache::Key
Chris Dumez
Reported
2015-04-02 15:26:17 PDT
Drop HTTP method from NetworkCache::Key as we only cache GET responses for now. Even when we start caching HEAD responses, we likely will not want the method to be part of the key because: - A HEAD response can be used to update the headers of a previously cached response to GET - A cached GET response may be used to satisfy subsequent HEAD requests
Attachments
Patch
(6.56 KB, patch)
2015-04-02 15:27 PDT
,
Chris Dumez
no flags
Details
Formatted Diff
Diff
Patch
(6.30 KB, patch)
2015-07-31 16:42 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-04-02 15:27:58 PDT
Created
attachment 250013
[details]
Patch
Antti Koivisto
Comment 2
2015-04-02 16:15:19 PDT
Comment on
attachment 250013
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=250013&action=review
> Source/WebKit2/NetworkProcess/cache/NetworkCacheStorage.h:80 > - static const unsigned version = 2; > + static const unsigned version = 3;
You shouldn't do this. The old entries will get cleaned during normal cache shrinks (and in an unlikely event of hash collision will fail to validate). Version updates are meant to be used when the directory structure changes and be paired with code that deletes the old directory structure.
Antti Koivisto
Comment 3
2015-04-02 16:19:20 PDT
It could be renamed to diskLayoutVersion or something similarly informative.
Chris Dumez
Comment 4
2015-04-02 16:20:30 PDT
Committed
r182296
: <
http://trac.webkit.org/changeset/182296
>
WebKit Commit Bot
Comment 5
2015-04-06 11:34:45 PDT
Re-opened since this is blocked by
bug 143448
Chris Dumez
Comment 6
2015-07-31 16:42:10 PDT
Created
attachment 257979
[details]
Patch
Chris Dumez
Comment 7
2015-07-31 16:42:40 PDT
We can land again now that efficacy logging has been disabled.
WebKit Commit Bot
Comment 8
2015-07-31 17:43:44 PDT
Comment on
attachment 257979
[details]
Patch Clearing flags on attachment: 257979 Committed
r187698
: <
http://trac.webkit.org/changeset/187698
>
WebKit Commit Bot
Comment 9
2015-07-31 17:43:49 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