Comments (5)
Hi, thanks for the issue. I'm really not sure what you are asking, unfortunately. Are you able to provide more specifics or even a pull request demonstrating what you are looking for?
from send.
@mhf-ir AFIK HLS and DASH don't use range requests and they usually format individual chunks of size 1MB. You can see a damo at https://players.akamai.com/players/hlsjs It doesn't use any range requests at all to give a partial content. As for your question, send
does seem to support partial content responses (https://github.com/pillarjs/send/blob/master/index.js#L675-L687). This can be done by range
header which IIRC all modern browers do for large files.
from send.
@mhf-ir AFIK HLS and DASH don't use range requests and they usually format individual chunks of size 1MB. You can see a damo at https://players.akamai.com/players/hlsjs It doesn't use any range requests at all to give a partial content. As for your question,
send
does seem to support partial content responses (https://github.com/pillarjs/send/blob/master/index.js#L675-L687). This can be done byrange
header which IIRC all modern browers do for large files.
I know hls and dash chunk files all files response 200 not 206.
Partial content is good for great Largfile with single request.
Consider this senario
First request for get file 1GB:
Browser send request to webserver
Web server tell client/browser your file is about **1GB** but take this chunk for example this **8mb**
Browser request again for next **8mb** ... and server give it to client.
Each request could be cached via CDN server if chunk always stick to special number.
https://docs.nginx.com/nginx/admin-guide/content-cache/content-caching/#slice
https://www.nginx.com/blog/smart-efficient-byte-range-caching-nginx/
from send.
@mhf-ir Are you saying that when a client requests the server for a huge file (not an explicit range request), the server should send a partial content back to the client?
from send.
This module already allows you to chunk files under the 200 response code with the start
and end
options. If this does not work, please provide some specific details and reasons why and we can reopen this issue. It is still generally unclear what the request is.
from send.
Related Issues (20)
- Make the request optional HOT 3
- Regular Expression Denial of Service in mime 1.4.0 HOT 5
- SendStream.pipe with empty path resolves to path with slash on end HOT 10
- RangeNotSatisfiableError: Range Not Satisfiable HOT 10
- Adhere to the full Streams API HOT 4
- Allow using alternate sources of files HOT 11
- Wrong behavior when handling discontinuous ranges. HOT 3
- Filenames with periods/dots using extensions option HOT 2
- Update to newer mime package to support wasm HOT 1
- progress event HOT 13
- strong etag support? HOT 4
- Can we increase the Max maxAge to 20 years? and have chance to add Expires header based on Last-modified? HOT 1
- Symlink Files HOT 4
- Allow falling back to file when directory exists but doesn't have index
- Node 15 / req.headers not defined HOT 11
- lookup not a function HOT 1
- Keep CSP on 304 HOT 6
- Unable to read /proc/* files HOT 2
- Any plan bump debug package to 3.1.0 for CVE-2017-20165? HOT 2
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 send.