WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
153708
[GTK] http/tests/cache/disk-cache/disk-cache-last-modified.html is failing
https://bugs.webkit.org/show_bug.cgi?id=153708
Summary
[GTK] http/tests/cache/disk-cache/disk-cache-last-modified.html is failing
Michael Catanzaro
Reported
2016-01-30 08:56:26 PST
http/tests/cache/disk-cache/disk-cache-last-modified.html has been failing since it was added in
r188690
: --- /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/http/tests/cache/disk-cache/disk-cache-last-modified-expected.txt +++ /home/slave/webkitgtk/gtk-linux-64-release-tests/build/layout-test-results/http/tests/cache/disk-cache/disk-cache-last-modified-actual.txt @@ -10,30 +10,30 @@ response source: Disk cache response headers: {"Last-Modified":"Thu, 01 Jan 1970 00:00:00 GMT"} -response source: Network +response source: Disk cache response headers: {"Last-Modified":"invalid"} -response source: Network +response source: Disk cache --------Testing loads through memory cache (XHR behavior)-------- response headers: {"Last-Modified":"Thu, 01 Jan 2000 00:00:00 GMT"} response source: Memory cache response headers: {"Last-Modified":"Thu, 01 Jan 1970 00:00:00 GMT"} -response source: Network +response source: Memory cache response headers: {"Last-Modified":"invalid"} -response source: Network +response source: Memory cache --------Testing loads through memory cache (subresource behavior)-------- response headers: {"Last-Modified":"Thu, 01 Jan 2000 00:00:00 GMT"} response source: Memory cache response headers: {"Last-Modified":"Thu, 01 Jan 1970 00:00:00 GMT"} -response source: Network +response source: Memory cache response headers: {"Last-Modified":"invalid"} -response source: Network +response source: Memory cache PASS successfullyParsed is true
Attachments
Add attachment
proposed patch, testcase, etc.
Carlos Garcia Campos
Comment 1
2016-02-02 04:44:29 PST
I can't reproduce this locally.
Carlos Garcia Campos
Comment 2
2016-02-03 06:06:08 PST
This test was added to fix a workaround in CFNetwork, so the tests could be skipped in GTK+. However, I'm not so sure it's a CFNetwork bug, but a problem in servers, so we might want to behave the same way Mac port does. There's an interesting discussion about this in
bug #148162
. The thing is that in case of an invalid date in Last-Modified header, we are getting Epoch as date, and then caching those resources. I agree with the reasoning in
bug #148162
and the decision made for the Mac port as well. It's very unlikely that are breaking some site using Epoch on purpose, and I really think we would be fixing more cases than broke, anyway. What do you think?
Carlos Garcia Campos
Comment 3
2016-02-03 09:51:24 PST
I'm confused now. If I run the test manually launching the server with Tools/Scripts/run-webkit-httpd and using WTR it gives the expected results, but if I use Tools/Scripts/run-webkit-tests the memory cache is still used.
Michael Catanzaro
Comment 4
2016-02-03 09:53:41 PST
My vote is to do what Apple does, treat epoch as invalid, and bypass both caches. A small minority of sites send these broken headers: do we display them broken for four years, or do we display them slowly? I vote for slowly. If I couldn't decide based on that alone, I would still favor following what Apple does. But, I think both options are reasonable.
Vitaly Dyackhov
Comment 5
2022-11-07 07:44:25 PST
Pull request:
https://github.com/WebKit/WebKit/pull/6207
EWS
Comment 6
2022-11-08 00:33:00 PST
Test gardening commit
256440@main
(6f536b7be60e): <
https://commits.webkit.org/256440@main
> Reviewed commits have been landed. Closing PR #6207 and removing active labels.
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