Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/WebKit/LayoutTests/http/tests/cache/freshness-header.html

Issue 2767853003: Remove stale-while-revalidate from blink (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/cache/freshness-header.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/cache/freshness-header.html b/third_party/WebKit/LayoutTests/http/tests/cache/freshness-header.html
deleted file mode 100644
index f0332d0f58290bebbcdf06ff54dde20b767bb400..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/http/tests/cache/freshness-header.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<!DOCTYPE html>
-<script src="/js-test-resources/js-test.js"></script>
-<script>
-description("Resource-Freshness header is sent when a revalidation request is initiated by the Blink memory cache within the stale-while-revalidate window.");
-
-var resourceFreshnessHeader;
-function report(value) {
- resourceFreshnessHeader = value;
-}
-
-window.jsTestIsAsync = true;
-
-window.onload = function () {
- // We set the timeout to 500 msec here because we expect age=1 in the
- // ResourceFreshness header if the age is [0.5, 1.5) seconds.
- setTimeout(
- function() {
- var script = document.createElement("script");
- script.src = "resources/stale-while-revalidate.php";
- script.onload = function() {
- shouldBeEqualToString(
- 'resourceFreshnessHeader',
- 'max-age=0,stale-while-revalidate=1,age=1');
- finishJSTest();
- };
- document.body.appendChild(script);
- },
- 500);
-};
-</script>
-<script src="resources/stale-while-revalidate.php"></script>

Powered by Google App Engine
This is Rietveld 408576698