equal
deleted
inserted
replaced
17 return false; |
17 return false; |
18 |
18 |
19 return @file_get_contents($path); |
19 return @file_get_contents($path); |
20 } |
20 } |
21 |
21 |
22 $expires_offset = 31536000; |
22 $expires_offset = 31536000; // 1 year |
23 |
23 |
24 header('Content-Type: application/x-javascript; charset=UTF-8'); |
24 header('Content-Type: application/x-javascript; charset=UTF-8'); |
25 header('Vary: Accept-Encoding'); // Handle proxies |
25 header('Vary: Accept-Encoding'); // Handle proxies |
26 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); |
26 header('Expires: ' . gmdate( "D, d M Y H:i:s", time() + $expires_offset ) . ' GMT'); |
27 header("Cache-Control: public, max-age=$expires_offset"); |
27 header("Cache-Control: public, max-age=$expires_offset"); |
31 |
31 |
32 header('Content-Encoding: gzip'); |
32 header('Content-Encoding: gzip'); |
33 echo $file; |
33 echo $file; |
34 } else { |
34 } else { |
35 echo get_file($basepath . '/tiny_mce.js'); |
35 echo get_file($basepath . '/tiny_mce.js'); |
|
36 echo get_file($basepath . '/wp-tinymce-schema.js'); |
36 } |
37 } |
37 exit; |
38 exit; |