Comments (10)
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.
from onedrive-cf-index.
原版本身也没有预览啊,不知道对比何在?另外什么是「整式缓存和流式缓存」?
from onedrive-cf-index.
抱歉,我的表述有误。说输入那个文件链接之后,可以直接看见文件内容,比如说
https://storage.idx0.workers.dev/Images/abc.jpeg
会直接把图片给显示出来。
然后它原版中有一个缓存功能。worker会通过msgraph 下载链接把文件内容缓存到cloudflare 云端,这样就会很快。
整式缓存是指把整个文件给缓存下来。
流式缓存应该就是把大文件缓存点,然后传给用户,再缓存一点再发给用户。
from onedrive-cf-index.
from onedrive-cf-index.
我感觉你的大概意思就是把 ?proxied
的功能应用到预览里面?
from onedrive-cf-index.
我感觉你的大概意思就是把
?proxied
的功能应用到预览里面?
如果是这个需求,我的设想是可以通过在配置里面加个
cachePreview: true
然后改一下 renderFilePreview
方法,只不过预览那边不知道是否支持这种 cf 缓存的链接 @spencerwooo
from onedrive-cf-index.
chunk缓存的话,好像和代理下载是一样的,但整个文件缓存这种又和代理下载不大同,整个缓存有正确的Content-Length
chunk和代理下载没有
我不太懂js,因为我学的是python ,这里把有关代码贴一下
from onedrive-cf-index.
https://github.com/heymind/OneDrive-Index-Cloudflare-Worker/blob/master/index.js
207-292行
from onedrive-cf-index.
chunk缓存的话,好像和代理下载是一样的,但整个文件缓存这种又和代理下载不大同,整个缓存有正确的Content-Length
chunk和代理下载没有我不太懂js,因为我学的是python ,这里把有关代码贴一下
对的,这也就是为什么之前的 issue #63 #62 (抱歉,原来引用错了) 是无法实现的,设置了 Transfer-Encoding: chunk
的 header 是无法设置 content-length
的;再说这个 header 是 cf 设定的,我们无法干预
from onedrive-cf-index.
这个我知道了,但缓存预览功能还是值得做出来的
代理下载速度(cdn)基本上1m /s
from onedrive-cf-index.
Related Issues (20)
- wrangler login 执行时卡在 Waiting for API token... HOT 2
- 希望能添加个视图预览 HOT 1
- cloudflare works 使用路由开文件提示重定向次数过多 HOT 1
- 关于上传文件问题
- Custom domain does not works HOT 1
- 从使用 wrangler 添加 Cloudflare Workers 环境变量开始报错(小白求助) HOT 10
- [bug?] OAuth Refresh token过期 HOT 2
- Preview cache (seems to) break Markdown preview
- 使用Insomnia获取refresh_token被告知code已过期
- 从6月份开始,Cf用户报错Worker threw exception,我这边报错Script Threw Exception,重新再来还是如此。 HOT 1
- Error 1101 Worker threw exception HOT 2
- 能否添加一个图床功能 HOT 2
- 叨扰大佬一下 我捣鼓了一晚上 一直获取不了refresh_token HOT 1
- It's not necessary to register new applications HOT 1
- 找不到 zone_id HOT 4
- Publish时出现以下错误 HOT 4
- 输入wrangler login 命令后报错 HOT 1
- Custom Domain Worker threw exception 1101 [自訂域名拋出 1101 錯誤] HOT 1
- 在进行到修改 src/config/default.js后该怎么办呢,是像原heymind一样将js填入worker的部署页面还是怎么操作呢(本人纯新手,不懂wrangler知识) HOT 1
- Markdown渲染base64编码图片时出现错误
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 onedrive-cf-index.