Unable to complete resource download from Azure Front Door When "Accept-Encoding: gzip" is set

teing buran 0 Reputation points
2024-08-06T07:57:20.8+00:00

According to user feedback, the website has been inaccessible since about two days ago. However, not all browsers are unable to access the website.Then I discovered that the resource can only start downloading but cannot complete when the "Accept-Encoding: gzip" header is added.

request for uncompressed content:

without-accept-encoding-p1without-accept-encoding-p2

request with accept-encoding: br:

with-accept-encoding-br-p1with-accept-encoding-br-p2

but, request with accept-encoding: gzip:

start download but can not complete with-accept-encoding-gzip-p1with-accept-encoding-gzip-p2

and even, request with accept-encoding: br, gzip:

According to AFD's documentation the response Content-Encoding should be br but gzip enter image description here

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
858 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 49,611 Reputation points Microsoft Employee Moderator
    2024-08-06T09:06:24.9733333+00:00

    @teing buran ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    • Can you confirm Compression is enabled on the AFD?
      • Can you please share a screenshot of the Rule?
    • It is possible that Compression is disable on the AFD and the Origin is actually the one responding with compressed content.

    See : There are two ways to enable file compression

    • Enabling compression on your origin server. Azure Front Door passes along the compressed files and delivers them to clients that request them.
    • Enabling compression directly on the Azure Front Door POP servers (compression on the fly). In this case, Azure Front Door compresses the files and sends them to the end users

    Cheers,

    Kapil

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.