fixed headers

This commit is contained in:
nelsonlaquet 2013-09-01 06:26:56 -05:00
parent 47f5bd64cb
commit 534df2ca32

View file

@ -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;
}
}