From 13596c8629e522e20aa21635c802405f2d1dfa98 Mon Sep 17 00:00:00 2001 From: Alexander Shapoval Date: Tue, 6 Mar 2018 16:31:37 +0200 Subject: [PATCH] Add Cache-Control header to combined assets (#3430) Related: #2474 --- modules/system/classes/CombineAssets.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/system/classes/CombineAssets.php b/modules/system/classes/CombineAssets.php index b2c32f9f3..943521f0a 100644 --- a/modules/system/classes/CombineAssets.php +++ b/modules/system/classes/CombineAssets.php @@ -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();