diff options
| author | winter | 2025-02-16 20:11:39 +0000 |
|---|---|---|
| committer | winter | 2025-02-16 20:11:39 +0000 |
| commit | 31b7ca2056dad13b3d9b059f7e552b1a576c5214 (patch) | |
| tree | 5e1fe1253ab1934bae12dcb8e565b4ebecf910ad /routes | |
| parent | 645e8bd0b2cf5f020585047d683ed0b26e892204 (diff) | |
turn down static caching time because its pissing me off
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/static.php | 2 |
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', |
