Comments (9)
@gcclua
For example: You want to download a cached static file (js/css/png) when the browser first accesses the cf web server. It can be read locally when the second access is made, right?
I am not sure if I know what you mean.
from cfadmin.
yeah, I mean first accesses is too slow, about use 7~8 second to load 10 png, disk read problem
from cfadmin.
If the disk itself is slow to read, I recommend that you migrate the static files to a separate server. This will alleviate this problem.
Although cf can notify the client to cache static files, this can not solve the problem of low efficiency of the disk itself.
from cfadmin.
@gcclua
If the static file read speed is normal, we can set the ttl
parameter of the httpd:static(folder, ttl)
method, so that each client does not need to request it again during the ttl
period after the last request for the static file.
from cfadmin.
I want to find a way, set framework to cache some png into server's memory, keep about 10240 png that will be frequent access
from cfadmin.
If httpd server preload/cache static folder that user set before bootstrap, and check cache when receive the hit request for the cache url/image,
from cfadmin.
@gcclua
cf
does not implement this feature, you can only try other ways. : )
from cfadmin.
@gcclua
On the dev
branch, I try to use 'sendfile' to improve the performance of the file being sent. Using zero-copy
may be better than the original implementation.
I don't know if this will help you solve the problem you're experiencing, but at least it will effectively reduce the memory fluctuations caused by sending Lua
large files.
If you have time, you can try to pull the dev
version for testing.
from cfadmin.
OK,thanks,I will try
from cfadmin.
Related Issues (20)
- sudo docker-compose -f docker-compose-with-cfadmin.yaml up 运行失败 HOT 4
- ubuntu build error HOT 4
- 自己编译和docker都不能正常运行 HOT 10
- 访问错误,出现不能继续正常工作的情况。 HOT 9
- 安全机制控制问题 HOT 2
- 文件上传只能小文件 HOT 15
- 域名访问 出现问题 HOT 19
- firefox 认证不正确 HOT 3
- 浏览器适配问题 HOT 5
- 请教个路由的问题 HOT 5
- Content-Type 最好能修改 HOT 34
- 关于多库,分权分域的问题 HOT 1
- 后台操作耗时,如何同步? HOT 11
- 升级后mysql连接错误 HOT 5
- 最新代码启动问题 HOT 5
- 目录结构有问题 HOT 1
- 经由cfadmin 后台启动的脚本 或程序 信号量被屏蔽了 HOT 23
- 发现一个稳定性的随机问题 HOT 5
- 建议httpd增加DELETE和PATCH动词的支持 HOT 1
- 大哥,AES_256_GCM加密可以用吗 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfadmin.