You can set custom HTTP Headers and CDN servers will add them to CDN Resource files. If this HTTP header has been already configured on your server it will be rewritten on the CDN side.
This feature will be helpful if:
- you have limited access to your server but you need to set up an HTTP Header for your CDN Resource.
- you need to add a header only for CDN files.
In CDN settings choose Show Advanced Settings, in Headers click Add Option and choose Custom Headers.
For example, you want to add the X-Provider header with the G-CORE value. Enable option and fill the field with the Header name and the value. Save changes.
Purge the CDN Resource cache and then run cURL command in the console on your computer or use online services:
curl -I http://cdn.site.com/images/1.jpg
HTTP/1.1 200 OK
Date: Wed, 05 Apr 2017 19:27:14 GMT
Last-Modified: Mon, 03 Oct 2016 22:21:05 GMT
If there is the right header in the answer, you have configured all successfully.