3

spa-to-http:轻量级零配置SPA HTTP 服务器

 1 year ago
source link: https://www.jdon.com/62447
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

spa-to-http:轻量级零配置SPA HTTP 服务器

该工具在 SPA 服务性能方面“击败”了 Nginx。
好处:
  • 它的 Docker 镜像比 Nginx 小 10 倍,生成速度快 10%,启动时间更快,性能更好一点
  • Docker 零配置,无需管理其他配置
  • 无需配置即可以最有效的设置为典型的 React/Vue/Angular 应用程序提供服务
  • 支持对原始文件进行 Brotly 压缩,您不需要自己归档文件,它会为您完成
  • 用 Go 编写,使其速度快(运行时没有开销)和小(小二进制大小)
  • 开源商业友好的 MIT 许可证
  • 开箱即用的最佳静态缓存:index.html 文件上的 no-cache 用于自动更新缓存和无限的 max-age 用于在所有 SPA 框架中具有哈希 URL 的所有其他资源。
详细点击标题

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK