FastGet now supports the RejectFastGet HTTP response header that allows servers to disable parallel downloads.
When a server wants to prevent FastGet from using parallel downloads, it can include the RejectFastGet header in its HTTP response:
HTTP/1.1 200 OK
Content-Length: 10485760
Accept-Ranges: bytes
RejectFastGet: trueThe following values will cause FastGet to fall back to single-threaded downloads:
RejectFastGet: 1RejectFastGet: yRejectFastGet: yesRejectFastGet: trueRejectFastGet: enabled
All values are case-insensitive.
Any other value (including false, 0, no) or the absence of the header will allow normal FastGet behavior.
Header set RejectFastGet "true"add_header RejectFastGet "true";app.get('/download/*', (req, res) => {
res.set('RejectFastGet', 'true');
// ... rest of download logic
});header('RejectFastGet: true');When FastGet detects the RejectFastGet header:
- It will display: "Server has rejected FastGet parallel downloads. Downloading in single thread..."
- It will force the number of threads to 1
- The download will proceed using a single connection
- This takes precedence over range support checks
This allows servers to:
- Reduce server load during peak times
- Prevent abuse from too many parallel connections
- Maintain control over how their content is downloaded
- Provide a better experience for all users