| OLD | NEW |
| 1 <?php | 1 <?php |
| 2 require_once '../../resources/portabilityLayer.php'; | 2 require_once '../../resources/portabilityLayer.php'; |
| 3 | 3 |
| 4 clearstatcache(); | 4 clearstatcache(); |
| 5 | 5 |
| 6 if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) { | 6 if ($_SERVER["HTTP_IF_MODIFIED_SINCE"]) { |
| 7 header("HTTP/1.0 304 Not Modified"); | 7 header("HTTP/1.0 304 Not Modified"); |
| 8 header("Content-Type: text/plain"); | 8 header("Content-Type: text/plain"); |
| 9 exit(); | 9 exit(); |
| 10 } | 10 } |
| 11 $one_year = 12 * 31 * 24 * 60 * 60; | 11 $one_year = 12 * 31 * 24 * 60 * 60; |
| 12 $last_modified = gmdate(DATE_RFC1123, time() - $one_year); | 12 $last_modified = gmdate(DATE_RFC1123, time() - $one_year); |
| 13 $expires = gmdate(DATE_RFC1123, time() + $one_year); | 13 $expires = gmdate(DATE_RFC1123, time() + $one_year); |
| 14 | 14 |
| 15 header('Cache-Control: public, max-age=' . $one_year); | 15 header('Cache-Control: public, max-age=' . $one_year); |
| 16 header('Expires: ' . $expires); | 16 header('Expires: ' . $expires); |
| 17 header('Content-Type: text/css'); | 17 header('Content-Type: text/css'); |
| 18 header('Etag: 123456789'); | 18 header('Etag: 123456789'); |
| 19 header('Last-Modified: ' . $last_modified); | 19 header('Last-Modified: ' . $last_modified); |
| 20 ?> | 20 ?> |
| 21 #test { background-color: rgb(0, 255, 0); } | 21 #test { background-color: rgb(0, 255, 0); } |
| OLD | NEW |