Egg.js Static File Server Plugin

JSON →
library 2.3.1 ·javascript
verified May 27, 2026

`egg-static` is a core plugin for the Egg.js Node.js framework, providing robust static file serving capabilities. It is built upon `koa-static-cache`, inheriting its efficient caching and serving mechanisms. The plugin is usually enabled by default in Egg.js applications, simplifying the process of making static assets available. Currently, the `2.x` series is stable, with `v2.3.1` released in February 2023. A significant `v3.0.0` release in January 2025 introduced breaking changes, primarily dropping support for older Node.js versions (below 18.19.0). Its release cadence is generally tied to the Egg.js framework's development. Key differentiators include its seamless integration with the Egg.js ecosystem, intelligent default caching behaviors optimized for both development and production environments, and flexible configuration for handling multiple static directories with custom URL prefixes.

total hits 13
actors 5 distinct systems
last hit 5d ago AhrefsBot
MetaBot
4
GPTBot
2
ClaudeBot
2
Script
1

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France