'text/css; charset=UTF-8', 'js' => 'application/javascript; charset=UTF-8', 'svg' => 'image/svg+xml', 'png' => 'image/png', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'webp' => 'image/webp', ]; header('Content-Type: ' . ($mimeTypes[$extension] ?? 'application/octet-stream')); header('Content-Length: ' . (string) filesize($resolvedFile)); readfile($resolvedFile); return true; } require __DIR__ . '/index.php';