Force Downloads allows you to enable the automatic download of assets delivered to end-users by forcing assets to download instead of opening in-browser. Force Downloads can be configured by header or by URL.
Content Disposition by URL
Content-Disposition by URL allows you to control the Content-Disposition header on the response from your Origin via the request URL of end-user clients.
Simply, the URL the end-user uses to access a file can determine whether the file is forced to download or not.
When configured, Content Disposition by URL takes precedence over Content Disposition by HTTP Header Match.
Query String for File Name
This is the query string parameter name which specifies the filename used in the Content-Disposition header.
Query String for Content Disposition
This is the type used in the Content-Disposition header; either “attachment” or “inline."
Query String for Override
This is the query string parameter name which will override the whole value in the Content-Disposition header. If present in the request URL, Query String for File Name and Query String for Content Disposition will be ignored.
Override Origin Content Disposition
This allows the CDN-generated Content-Disposition header to override the header from your Origin.
Content Disposition by HTTP Header
Content Disposition by HTTP Header Match allows you to control the Content-Disposition header on the responses from your Origin using a pattern matched against the value of any HTTP header present in an end-user's request for content.
Which headers you specify will determine whether the file is forced to download depending on whether they are present in the end-user’s request for content.
Remember, when both are enabled, Content Disposition by URL overrides Content Disposition by HTTP Header Match.
Header to Use
This is used to specify the name of the HTTP header you’d like to use in the HTTP header pattern match.
Values to Download
This is the list of file extensions to use in determining which files are forced to download.
Set Content Disposition
This is the type used in the Content-Disposition header; either “attachment” or “inline."
Override Origin Content Disposition
This allows the CDN-generated Content-Disposition header to override the header from your Origin.