Index: LayoutTests/http/tests/cache/image-with-dpr-header-cached.html |
diff --git a/LayoutTests/http/tests/cache/image-with-dpr-header-cached.html b/LayoutTests/http/tests/cache/image-with-dpr-header-cached.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..c1bb5963572243ad77f894e6f91fdd93df00bd02 |
--- /dev/null |
+++ b/LayoutTests/http/tests/cache/image-with-dpr-header-cached.html |
@@ -0,0 +1,25 @@ |
+<!DOCTYPE html> |
+<body> |
+<script> |
+if (window.testRunner) { |
+ testRunner.waitUntilDone(); |
+} |
+window.onload = function() { |
+ if (window.sessionStorage.getItem("reloaded")) { |
+ window.sessionStorage.removeItem("reloaded"); |
+ if (window.testRunner) { |
+ window.testRunner.notifyDone(); |
+ } |
+ } else { |
+ window.sessionStorage.reloaded = "true"; |
+ location.reload(); |
+ } |
+} |
+</script> |
+<!-- Reuse from cache - should keep the DPR --> |
+<img src="http://127.0.0.1:8000/resources/dpr.php?name=square100.png&mimeType=image/png&dpr=4.0"> |
+<!-- Revalidation - should keep previous DPR --> |
+<img src="http://127.0.0.1:8000/resources/dpr.php?name=square100.png&mimeType=image/png&dpr=4.0&expires=1"> |
+ |
+</body> |
+</html> |