We've been making changes to how we organize and display our docs. Our work isn't done but we'd love your feedback.
Getting started
Basics
Domains & Origins
Performance

Configuration
Basics
Conditions
Dictionaries
Domains & Origins
Request settings
Cache settings
Headers
Responses
Performance
Custom VCL
Image optimization
Video

Security
Access Control Lists
Monitoring and testing
Securing communications
TLS
Web Application Firewall

Integrations
Logging endpoints
Non-Fastly services

Diagnostics
Streaming logs
Debugging techniques
Common errors

Account info
Account management
Billing
User access and control

Reference

    Large File Support

      Last updated July 15, 2019

    Fastly limits the size of cached files to 2GB and using our Streaming Miss feature increases that limit for files up to 5G. To enable support for files larger than the 5GB caching limit, you can take advantage of Fastly’s support for large files by creating a VCL snippet following the steps below.

    Using VCL to enable support for files larger than 5GB

    To enable support for files larger than 5GB, create a VCL Snippet using the following steps.

    1. Log in to the Fastly web interface and click the Configure link.
    2. From the service menu, select the appropriate service.
    3. Click the Configuration button and then select Clone active. The Domains page appears.
    4. Click the VCL Snippets link. The VCL Snippets page appears.
    5. Click the Create your first VCL snippet. The Create a VCL snippet page appears.

      Enable Large File Support via a VCL Snippet

    6. In the Name field type an appropriate name (e.g., Pass on files greater than 5GB).
    7. From the Type (placement of the snippets) controls, select within subroutine.
    8. From the Select subroutine menu, select fetch (vcl_fetch).
    9. In the VCL field, add the following snippet:

      1
      2
      3
      
      if (std.atoi(beresp.http.Content-Length) > 5000000000) {
        return(pass);
      }
      
    10. Click Create to create the snippet.
    11. Click the Activate button to deploy your configuration changes.
    Back to Top

    Additional resources: