mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-21193 finally fixed YUI3 laoding - now fully cached and working - yay!
This commit is contained in:
parent
7a82b2afc8
commit
945f19f77d
4 changed files with 90 additions and 60 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue