Revalidation header blacklisting should be case-insensitive.
[WebKit-https.git] / LayoutTests / http / tests / cache / content-type-ignored-during-revalidation.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <link rel="stylesheet" href="resources/stylesheet304-bad-content-type.php">
5 </head>
6 <body>
7     <div id="test">This div should have a green background.</div>
8
9     <script src="/js-test-resources/js-test-pre.js"></script>
10     <script>
11         window.jsTestIsAsync = true;
12
13         description("Certain headers (such as 'content-type') ought to be ignored when resources like stylesheets are revalidated via a 304 response.");
14
15         window.onload = function () {
16             if (window.sessionStorage.reloaded) {
17                 window.sessionStorage.removeItem("reloaded");
18                 shouldBeEqualToString("window.getComputedStyle(document.getElementById('test')).backgroundColor", "rgb(0, 255, 0)"); 
19                 finishJSTest();
20             } else {
21                 window.sessionStorage.reloaded = 1;
22                 window.location.reload();
23             }
24         };
25     </script>
26     <script src="/js-test-resources/js-test-post.js"></script>
27 </body>
28 </html>