Chromium Code Reviews
DescriptionReload cache control: remove redundant header insertion from Blink
Now Blink inserts "Cache-Control: max-age=0", "If-Modified-Since",
and "If-None-Match" headers for resource revalidation.
But we also use WebCachePolicy::ValidatingCacheData in such cases
so that //net handles such headers.
So we can safely remove this insertion from Blink, and it would help
to avoid unexpected cache control flag mismatches.
Beforehand, I added some content_browsertests to verify the header
for several reloads.
https://codereview.chromium.org/1905873002/
https://codereview.chromium.org/1993603003/
And this change actually removes the insertion code from Blink.
This is historical code that exists before Chrome was born,
there WebKit does not assume our net like backend for networking.
This is one origin though it has moved around in tens of refactorings
https://chromium.googlesource.com/chromium/src/+/21a8f9925eacbc8016e44bb1bd81250145552ba0/third_party/WebKit/WebCore/loader/FrameLoader.cpp
BUG=602900
TEST=content_browsertests --gtest_filter='Reload*.*'
Patch Set 1 #Patch Set 2 : rebase to https://codereview.chromium.org/1905873002/ #Patch Set 3 : rebase #Patch Set 4 : remove other headers modification #Patch Set 5 : Add another test for last-modified #Patch Set 6 : Android build fix #Patch Set 7 : rebase (modify newly added tests too) #Patch Set 8 : cacheControlContainsNoCache #
Total comments: 1
Patch Set 9 : (just rebase to see bots' results again) #
Messages
Total messages: 13 (6 generated)
|
|||||||||||||||||||||||||||||||||||||