chromium/third_party/blink/web_tests/http/tests/misc/resources/image-checks-for-dpr.php

<?php
    $dpr = $_SERVER["HTTP_DPR"] ?? null;

    if(isset($dpr)) {
        $fn = fopen("compass.jpg", "r");
        fpassthru($fn);
        fclose($fn);
        exit;
    }
    header("HTTP/1.1 417 Expectation failed");
?>