Bug 142770 - Disk cache should support Vary: Cookie
Summary: Disk cache should support Vary: Cookie
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-03-16 21:18 PDT by Antti Koivisto
Modified: 2015-03-17 09:09 PDT (History)
4 users (show)

See Also:


Attachments
patch (7.40 KB, patch)
2015-03-16 21:33 PDT, Antti Koivisto
buildbot: commit-queue-
Details | Formatted Diff | Diff
Archive of layout-test-results from ews102 for mac-mavericks (589.26 KB, application/zip)
2015-03-16 22:09 PDT, Build Bot
no flags Details
another (8.54 KB, patch)
2015-03-16 22:29 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2015-03-16 21:18:51 PDT
Vary: Cookie tells the cache not to use the entry if the cookie has changed.
Comment 1 Antti Koivisto 2015-03-16 21:19:31 PDT
rdar://problem/19764945
Comment 2 Antti Koivisto 2015-03-16 21:33:58 PDT
Created attachment 248804 [details]
patch
Comment 3 Build Bot 2015-03-16 22:09:23 PDT
Comment on attachment 248804 [details]
patch

Attachment 248804 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5195992571838464

New failing tests:
http/tests/cache/disk-cache-vary-cookie.html
Comment 4 Build Bot 2015-03-16 22:09:26 PDT
Created attachment 248812 [details]
Archive of layout-test-results from ews102 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 5 Pratik Solanki 2015-03-16 22:15:31 PDT
Comment on attachment 248804 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=248804&action=review

> Source/WebKit2/ChangeLog:9
> +        Fetch then explicitly when resolving Vary: Cookie.

then -> them

> Source/WebKit2/ChangeLog:13
> +        reasonable cases though. Fetching cookies for every request might be too expensive for this rarely used feature.

Would it be worth having an assert to catch cases where cookies change in between? i.e. fetch the cookies for every request in debug builds and compare to what we saved.
Comment 6 Antti Koivisto 2015-03-16 22:29:18 PDT
Created attachment 248823 [details]
another
Comment 7 Antti Koivisto 2015-03-16 22:29:59 PDT
> Would it be worth having an assert to catch cases where cookies change in
> between? i.e. fetch the cookies for every request in debug builds and
> compare to what we saved.

Not sure what we would do with that information though.
Comment 8 WebKit Commit Bot 2015-03-17 09:09:42 PDT
Comment on attachment 248823 [details]
another

Clearing flags on attachment: 248823

Committed r181651: <http://trac.webkit.org/changeset/181651>
Comment 9 WebKit Commit Bot 2015-03-17 09:09:46 PDT
All reviewed patches have been landed.  Closing bug.