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

Unified Diff: LayoutTests/http/tests/w3c/webperf/resources/generate_resource.php

Issue 42363004: [Resource Timing] Memory cached resources should be reported on first use. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix unsigned Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/w3c/webperf/submission/Google/resource-timing/html/test_resource_memory_cached.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/w3c/webperf/resources/generate_resource.php
diff --git a/LayoutTests/http/tests/w3c/webperf/resources/generate_resource.php b/LayoutTests/http/tests/w3c/webperf/resources/generate_resource.php
index 5451729262231d869cb6be046d7d363cbc136bab..974e14afae9f4e4f9d762372b6acedf310530820 100644
--- a/LayoutTests/http/tests/w3c/webperf/resources/generate_resource.php
+++ b/LayoutTests/http/tests/w3c/webperf/resources/generate_resource.php
@@ -49,7 +49,11 @@
header("HTTP/1.1 $response_code");
header("Content-type: $content_type");
if (isset($_GET["cacheable"])) {
- header("Etag: 7");
+ if ($_GET["cacheable"] == 1) {
+ header("Cache-control: max-age=120");
+ } else {
+ header("Etag: 7");
+ }
} else {
header("Cache-control: no-cache");
}
« no previous file with comments | « no previous file | LayoutTests/http/tests/w3c/webperf/submission/Google/resource-timing/html/test_resource_memory_cached.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698