Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / resources / dpr.php
blobd48d4960511fb5bc30922136ee60dc0a40b9e902
1 <?php
2 $name = $_GET['name'];
3 $mimeType = $_GET['mimeType'];
4 $dpr = $_GET['dpr'];
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');
14 if ($_SERVER['HTTP_IF_NONE_MATCH'] == 'dprimage') {
15 header('HTTP/1.1 304 Not Modified');
16 exit;
19 header('Content-DPR: '. $dpr);
21 readfile($name);