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

Unified Diff: LayoutTests/http/tests/inspector/network/resources/cached-script.php

Issue 637523002: DevTools: use timing information for "disk cached" resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
Index: LayoutTests/http/tests/inspector/network/resources/cached-script.php
diff --git a/LayoutTests/http/tests/inspector/network/resources/cached-script.php b/LayoutTests/http/tests/inspector/network/resources/cached-script.php
new file mode 100644
index 0000000000000000000000000000000000000000..9f064b7b40706a895bdc99d2ce1418b7f3e4221b
--- /dev/null
+++ b/LayoutTests/http/tests/inspector/network/resources/cached-script.php
@@ -0,0 +1,12 @@
+<?php
+ if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) {
+ header("HTTP/1.0 304 Not Modified");
+ exit;
+ }
+
+ header("Cache-control: max-age=3600");
+ header("Expires: " . gmdate(DATE_RFC1123, time() + 600));
+ header("Last-Modified: " . gmdate(DATE_RFC1123, time() - 600));
+ header("Content-Type:text/javascript; charset=UTF-8");
+?>
+console.log("Done.");
« no previous file with comments | « LayoutTests/http/tests/inspector/network/ping-response.html ('k') | Source/devtools/front_end/audits/AuditRules.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698