This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 433
cache功能没有利用 #66
Labels
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
原版本身也没有预览啊,不知道对比何在?另外什么是「整式缓存和流式缓存」? |
抱歉,我的表述有误。说输入那个文件链接之后,可以直接看见文件内容,比如说 然后它原版中有一个缓存功能。worker会通过msgraph 下载链接把文件内容缓存到cloudflare 云端,这样就会很快。 整式缓存是指把整个文件给缓存下来。 |
我感觉你的大概意思就是把 |
如果是这个需求,我的设想是可以通过在配置里面加个 cachePreview: true 然后改一下 |
chunk缓存的话,好像和代理下载是一样的,但整个文件缓存这种又和代理下载不大同,整个缓存有正确的Content-Length 我不太懂js,因为我学的是python ,这里把有关代码贴一下 |
这个我知道了,但缓存预览功能还是值得做出来的 代理下载速度(cdn)基本上1m /s |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
在原版中,小图片,小文件预览都是走缓存的,包括整式缓存和流式缓存。但在这里,所有预览无论如何,走的都是Microsoft Graph Download URL,很慢,希望改成从cloudflare缓存读取
The text was updated successfully, but these errors were encountered: