Large file handling


#1

Is it possible to handle the large file?

#If over the 100MB file, not delivery content .
if (std.integer(beresp.http.Content-Length, 0) > 103857600) {
error 404 “large file”;
}


#2

Hi @redbox ,

We do support the delivery of large files, up to 5GB. We offer both Streaming Miss and Large File Support. You can read more about setting this up here:
https://docs.fastly.com/guides/performance-tuning/improving-caching-performance-with-large-files

There’s a few caveats, so be sure to read over the limitations for Streaming Miss, and the failure modes for Large File Support.


#3

Hi Thank you for the information

According to your link, it is supported large file cache or do stream action.
but I would like to return the own error code when the enduser does download of the 100MB contents.

Best regards.