WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
144386
Main resource loaded via 304 response becomes empty if reloaded by user
https://bugs.webkit.org/show_bug.cgi?id=144386
Summary
Main resource loaded via 304 response becomes empty if reloaded by user
Antti Koivisto
Reported
2015-04-29 05:11:41 PDT
Main resource loaded via 304 response becomes empty if reloaded by user.
Attachments
patch
(5.77 KB, patch)
2015-04-29 08:48 PDT
,
Antti Koivisto
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Antti Koivisto
Comment 1
2015-04-29 05:12:13 PDT
<
rdar://problem/18480199
>
Antti Koivisto
Comment 2
2015-04-29 08:48:33 PDT
Created
attachment 251953
[details]
patch
Darin Adler
Comment 3
2015-04-29 09:08:37 PDT
Comment on
attachment 251953
[details]
patch I’ve wondered about this kind of thing for years. Part of the general “what do we want to keep when we reload and what needs to start fresh” topic for requests in general. Also related is the scheme for making reloads bypass cache appropriately. Is this needed anywhere else? Does it only affect main resources? Is there some way to tie it more closely to other ways we have to change the request in a reloading situation?
Antti Koivisto
Comment 4
2015-04-29 09:20:21 PDT
> Is this needed anywhere else? Does it only affect main resources? Is there > some way to tie it more closely to other ways we have to change the request > in a reloading situation?
Main document loading is a rare case where we have a long-lived ResourceRequest not owned by a CachedResource. The refactoring that moved us from entirely special main resource loading to CachedResources based loading (using CachedRawResource) is basically incomplete so we end up with weird special handling.
Antti Koivisto
Comment 5
2015-04-29 10:11:29 PDT
https://trac.webkit.org/r183555
Alexey Proskuryakov
Comment 6
2015-04-29 12:17:34 PDT
http/tests/cache/main-resource-304-reload.html fails on Windows:
https://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=http%2Ftests%2Fcache%2Fmain-resource-304-reload.html
Antti Koivisto
Comment 7
2015-04-29 13:30:17 PDT
Marked it failing on Windows in
http://trac.webkit.org/changeset/183573
(like most of the cache test).
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