By default, a CDN server passes all HTTP headers it receives from the client’s origin to end users.
To adjust the headers that are being passed:
1. Go to the resource settings.
2. Switch on the Hide response headers option in the HTTP headers section.
3. Set up the option. You can configure it in two modes:
- Hide all except. Set the headers that will be kept in the response, and all other headers will be hidden. After enabling, the most popular headers will appear in the field. You can remove some of them from the response or add custom headers to the response. To remove, press the × icon. To add, click on the HTTP headers row and choose from the list or enter your own. The new header can contain letters (a-z), numbers (0-9), dashes (-), and underscores (_).
- Hide only. Set the headers that will be hidden from the response, and all other headers will be kept. Click on the HTTP headers row and choose from the list or enter custom headers.
Note: There are some mandatory headers: connection, content-length, content-type, server, and date. These cannot be hidden from responses.
4. Save changes.