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

Unified Diff: LayoutTests/http/tests/css/resources/cors-ahem.php

Issue 271083002: Resource Timing: Use original Timing-Allow-Origin for cache validating (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/css/resources/cors-ahem.php
diff --git a/LayoutTests/http/tests/css/resources/cors-ahem.php b/LayoutTests/http/tests/css/resources/cors-ahem.php
new file mode 100644
index 0000000000000000000000000000000000000000..a18850e4048ae46caf6e4224c2c87ac77e140314
--- /dev/null
+++ b/LayoutTests/http/tests/css/resources/cors-ahem.php
@@ -0,0 +1,19 @@
+<?php
+
+if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])) {
+ header("HTTP/1.1 304 Not Modified");
+} else {
+ $font = "../../../../resources/Ahem.ttf";
+
+ header("Cache-Control: public, max-age=86400");
+ header('Last-Modified: ' . gmdate("D, d M Y H:i:s", filemtime($font)) . " GMT");
+ header("Content-Type: font/truetype");
+ header("Content-Length: " . filesize($font));
+ header("Access-Control-Allow-Origin: *");
+ header("Timing-Allow-Origin: *");
+ ob_clean();
+ flush();
+ readfile($font);
+}
+
+?>

Powered by Google App Engine
This is Rietveld 408576698