Add Response Headers. Specify custom HTTP Headers that a CDN server adds to response

Set custom HTTP Headers for CDN servers to add to responses. If the same header is configured on your server CDN servers will replace its value.

You can add up to 50 Response Headers.

Configure Header

  1. Go to the CDN resource settings.
  2. In the Options section, select the HTTP headers block of settings.
  3. Activate the option Response headers (add).

  4. In the Header name field, enter the required name.
  5. In the Value field, specify the header value that will be added to the response.
  6. It is possible to add several values ​​for a header in two ways, the response will depend on the chosen method:
  • If you need to send header values ​​separated by commas, specify the required header values ​​in the Value field separated by commas.


In this case, the response header will be as follows:

    X-Provider: gcore, test
  • If you need to send header values ​​in different lines, click Add header and duplicate the header name with an additional value.


In this case, the response header will be as follows:



Valid characters for fields

The Header name field can contain letters (a-z), numbers (0-9), dashes (-) and underscores (_).

The Value field can contain letters (a-z), numbers (0-9), spaces and the following special characters: `~!@#%^&*()-_=+ /|";:?.><{}[].

The Value field limitations: 

  • special characters $' are not allowed
  • the field can't begin with a special character
  • the field can't contain only special characters. 

Check Header

Purge the CDN Resource cache and then run cURL command in the console on your computer or use online services:

curl -I
HTTP/1.1 200 OK
Server: nginx/1.11.4
Date: Wed, 05 Apr 2017 19:27:14 GMT
Content-Type: image/jpeg
Content-Length: 62890
Connection: keep-alive
Last-Modified: Mon, 03 Oct 2016 22:21:05 GMT
ETag: "f5aa-53dfd5c25d421"
FILE: Image
X-Provider: gcore
Cache: HIT
X-ID: m9-up-e240
Accept-Ranges: bytes

If there is the right header in the answer, you have successfully configured it.

Was this article helpful?
Recently viewed articles