'text/css', 'js' => 'application/javascript', 'json' => 'application/json', 'png' => 'image/png', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'svg' => 'image/svg+xml', 'webp' => 'image/webp', 'woff' => 'font/woff', 'woff2'=> 'font/woff2', 'ttf' => 'font/ttf', 'eot' => 'application/vnd.ms-fontobject' ]; header('Content-Type: ' . ($contentTypes[$extension] ?? 'application/octet-stream')); header('Content-Length: ' . filesize($fullPath)); header('Cache-Control: public, max-age=86400'); header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 86400) . ' GMT'); readfile($fullPath);