MDL-21193 finally fixed YUI3 laoding - now fully cached and working - yay!

This commit is contained in:
Petr Skoda 2009-12-28 23:08:55 +00:00
parent 7a82b2afc8
commit 945f19f77d
4 changed files with 90 additions and 60 deletions

View file

@ -70,6 +70,7 @@ function yui_image_cached($imagepath) {
header('Last-Modified: '. gmdate('D, d M Y H:i:s', filemtime($imagepath)) .' GMT');
header('Expires: '. gmdate('D, d M Y H:i:s', time() + $lifetime) .' GMT');
header('Pragma: ');
header('Cache-Control: max-age=315360000');
header('Accept-Ranges: none');
header('Content-Type: '.$mimetype);
header('Content-Length: '.filesize($imagepath));