Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 37 | PointedEar | 1 | <?php |
| 2 | |||
| 3 | $file = $_GET['src']; |
||
| 4 | |||
| 5 | header('Last-Modified: ' . gmdate('D, d M Y H:i:s', @filemtime($file)) . ' GMT'); |
||
| 6 | |||
| 7 | /* Cached resource expires in HTTP/1.1 caches immediately after last retrieval */ |
||
| 8 | header('Cache-Control: max-age=0, s-maxage=0, must-revalidate, proxy-revalidate'); |
||
| 9 | |||
| 10 | /* Cached resource expires in HTTP/1.0 caches immediately after last retrieval */ |
||
| 11 | header('Expires: ' . gmdate('D, d M Y H:i:s', time() /*+ 86400*/) . ' GMT'); |
||
| 12 | |||
| 13 | header('Content-Type: text/plain; charset=UTF-8'); |
||
| 14 | |||
| 15 | require __DIR__ . '/LEAST.php'; |
||
| 16 | $least = new de\pointedears\css\least\LEAST(); |
||
| 17 | /*echo*/ $least->parse_file($file); |