aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--routes/static.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/routes/static.php b/routes/static.php
index f28c7e4..ec416e8 100644
--- a/routes/static.php
+++ b/routes/static.php
@@ -11,7 +11,7 @@ Router::getInstance()->mount('/static/:path', function (array $args) {
}
$fileExtension = explode('.', basename($realPath));
$fileExtension = $fileExtension[count($fileExtension) - 1];
- header('Cache-Control: max-age=604800'); // 1 week
+ header('Cache-Control: max-age=3600'); // 1 hour
header('Content-Type: ' . match ($fileExtension) {
'css' => 'text/css',
'js' => 'application/javascript',