前端文件走CDN
Is your feature request related to a problem?
无
Describe the solution you'd like
可否让所有前端文件,js,css等直接走公共的cdn呢,比如jsdelivr等
Additional context
No response
Issue is not in English. It has been translated automatically.
Title: Front-end files go to CDN
项目本身就是前后端分离的,其实完全可以将前端独立出来的。作者这么没这么做的原因在于希望程序打包成单个可执行文件,对外部没有任何依赖,也包括无互联网的情况。所以前端文件走 CDN 违背了这一设计,不太可能会满足这个需求。
因为这个程序大多都是自己使用,浏览器本身会有缓存,对服务器、对流量的压力不大,对加载的速度影响也不大。如果真的需要很多人使用的话,考虑用 Cloudflare 的免费 CDN 加速也行。
Issue is not in English. It has been translated automatically.
The project itself is separated from the front end and the front end. In fact, the front end can be completely separated. The reason why the author did not do this is that he hopes that the program will be packaged into a single executable file without any external dependencies, including situations where there is no Internet. Therefore, using CDN for front-end files violates this design and is unlikely to meet this demand.
Because most of this program is used by oneself, the browser itself has a cache, which puts little pressure on the server and traffic, and has little impact on the loading speed. If you really need it to be used by many people, consider using Cloudflare’s free CDN acceleration.