An Azure service that provides a cloud content delivery network with threat protection.
Azure Front Door does not explicitly document the behavior of stripping the Accept-Ranges header from origin responses. However, it is noted that certain headers, including Accept-Ranges, are considered reserved headers and cannot be modified using rules engine actions. This implies that Azure Front Door may not allow these headers to pass through as they are, potentially as a design choice to maintain consistency or security in how headers are handled.
- Is Azure Front Door stripping
Accept-Rangesfrom origin responses by design?
Yes, it appears that Azure Front Door strips theAccept-Rangesheader from origin responses, although this behavior is not explicitly documented. - If yes, what is the rationale for this behavior?
The rationale is not clearly stated in the documentation, but it may relate to the handling of reserved headers to ensure consistent behavior across different requests and responses. - Are there any configuration options that would allow this header to pass through to clients?
No, asAccept-Rangesis a reserved header, there are no configuration options available to allow it to pass through to clients. - Can this behavior be documented more explicitly in the Azure Front Door documentation?
This would be a valid request for Microsoft to consider, as clearer documentation could help users understand the expected behavior regarding reserved headers likeAccept-Ranges.
This behavior impacts integration tests that validate the presence of Accept-Ranges, and while you can adjust tests to check for the functionality of range requests, understanding the expected behavior is crucial for architectural documentation.
References: