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

Side by Side Diff: LayoutTests/http/tests/resources/dpr.php

Issue 46313002: Support the DPR header for client hints. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: with cache tests Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <?php
2 $name = $_GET['name'];
3 $mimeType = $_GET['mimeType'];
4 $dpr = $_GET['dpr'];
5
6 header('Content-Type: ' . $mimeType);
7 header('Content-Length: ' . filesize($name));
8 if (isset($_GET['expires']))
9 header('Cache-control: max-age=0');
10 else
11 header('Cache-control: max-age=86400');
12 header('ETag: dprimage');
13
14 if ($_SERVER['HTTP_IF_NONE_MATCH'] == 'dprimage') {
15 header('HTTP/1.1 304 Not Modified');
16 exit;
17 }
18
19 header('DPR: '. $dpr);
20
21 readfile($name);
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/images/image-with-dpr-header-expected.html ('k') | Source/core/fetch/ImageResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698