RESOLVED FIXED Bug 120832
Revalidation header blacklisting should be case-insensitive.
https://bugs.webkit.org/show_bug.cgi?id=120832
Summary Revalidation header blacklisting should be case-insensitive.
Mike West
Reported 2013-09-06 01:52:02 PDT
Headers like 'content-type' should be ignored for 304 responses, even if they are delivered as 'Content-Type', or 'CoNtEnT-TyPe', etc. I broke this behavior in http://trac.webkit.org/changeset/142068 ("Entity-header extension headers honored on 304 responses"). This causes pages like https://learndev.unm.edu/ to break on reload, as they incorrectly send 'Content-Type: text/plain' for 304 responses for resources like CSS and JavaScript. https://code.google.com/p/chromium/issues/detail?id=246875 documents the Blink-side fix. I'll upload a patch shortly to fix the issue in WebKit.
Attachments
Patch (6.81 KB, patch)
2013-09-06 02:02 PDT, Mike West
ap: review+
Mike West
Comment 1 2013-09-06 02:02:58 PDT
Mike West
Comment 2 2013-09-06 02:04:34 PDT
Hi Alexey! Would you mind taking a look at this followup to the 7-month old http://trac.webkit.org/changeset/142068? Thanks!
Alexey Proskuryakov
Comment 3 2013-09-06 09:56:44 PDT
Comment on attachment 210711 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=210711&action=review r=me Thank you, this is much appreciated. > LayoutTests/http/tests/cache/resources/stylesheet304-bad-content-type.php:7 > + header("HTTP/1.0 304 Not Modified"); I'd have used HTTP/1.1, because 1.0 should die, but this makes no difference in practice.
Alexey Proskuryakov
Comment 4 2013-09-06 09:57:00 PDT
Alexey Proskuryakov
Comment 5 2013-09-06 10:10:09 PDT
Comment on attachment 210711 [details] Patch I'm still not sure how we get away with using WTF::Unicode::foldCase for HTTP headers everywhere, this should break with the letter "i" in Turkish locale. But this should not block landing.
Alexey Proskuryakov
Comment 6 2013-09-06 12:17:20 PDT
Darin Adler
Comment 7 2013-09-06 12:42:41 PDT
Can we add some test coverage for this?
Alexey Proskuryakov
Comment 8 2013-09-06 13:03:49 PDT
My bad, I only committed WebCore by accident. Landed the test in r155208.
Note You need to log in before you can comment on or make changes to this bug.