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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2
3 if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"])) {
4 header("HTTP/1.1 304 Not Modified");
5 } else {
6 $font = "../../../../resources/Ahem.ttf";
7
8 header("Cache-Control: public, max-age=86400");
9 header('Last-Modified: ' . gmdate("D, d M Y H:i:s", filemtime($font)) . " GM T");
10 header("Content-Type: font/truetype");
11 header("Content-Length: " . filesize($font));
12 header("Access-Control-Allow-Origin: *");
13 header("Timing-Allow-Origin: *");
14 ob_clean();
15 flush();
16 readfile($font);
17 }
18
19 ?>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698