Add Cache-Control header to combined assets (#3430)

Related: #2474
This commit is contained in:
Alexander Shapoval 2018-03-06 16:31:37 +02:00 committed by Luke Towers
parent 2f55850ae9
commit 13596c8629
1 changed files with 1 additions and 0 deletions

View File

@ -245,6 +245,7 @@ class CombineAssets
header_remove();
$response = Response::make();
$response->header('Content-Type', $mime);
$response->header('Cache-Control', 'private, max-age=604800');
$response->setLastModified(new DateTime($lastModifiedTime));
$response->setEtag($etag);
$response->setPublic();