mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
Merged development into master
This commit is contained in:
commit
3745aacd34
1 changed files with 5 additions and 0 deletions
|
@ -27,6 +27,11 @@
|
|||
$response->header('Content-Disposition', 'filename="' . $filename . '"');
|
||||
$response->header('Content-Type', 'image/png');
|
||||
|
||||
$lastModified = filemtime($filename);
|
||||
|
||||
header('Last-Modified: ' . $lastModified);
|
||||
header('Cache-Control: max-age=' . (60 * 60 * 24 * 7));
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue