You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cdn/cdn-troubleshoot-compression.md
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,26 +2,26 @@
2
2
title: Troubleshooting file compression in Azure CDN | Microsoft Docs
3
3
description: Learn how to troubleshoot issues with file compression in Azure Content Delivery Network. This article covers several possible causes.
4
4
services: cdn
5
-
documentationcenter: ''
6
-
author: sohamnc
7
-
manager: danielgi
8
-
editor: ''
9
-
5
+
author: duongau
6
+
manager: kumudd
10
7
ms.assetid: a6624e65-1a77-4486-b473-8d720ce28f8b
11
8
ms.service: azure-cdn
12
9
ms.workload: tbd
13
10
ms.tgt_pltfrm: na
14
11
ms.topic: troubleshooting
15
-
ms.date: 01/23/2017
12
+
ms.date: 02/27/2023
16
13
ms.author: mazha
17
14
18
15
---
16
+
19
17
# Troubleshooting CDN file compression
18
+
20
19
This article helps you troubleshoot issues with [CDN file compression](cdn-improve-performance.md).
21
20
22
-
If you need more help at any point in this article, you can contact the Azure experts on [the MSDN Azure and the Stack Overflow forums](https://azure.microsoft.com/support/forums/). Alternatively, you can also file an Azure support incident. Go to the [Azure Support site](https://azure.microsoft.com/support/options/) and click**Get Support**.
21
+
If you need more help at any point in this article, you can contact the Azure experts on [the MSDN Azure and the Stack Overflow forums](https://azure.microsoft.com/support/forums/). Alternatively, you can also file an Azure support incident. Go to the [Azure Support site](https://azure.microsoft.com/support/options/) and select**Get Support**.
23
22
24
23
## Symptom
24
+
25
25
Compression for your endpoint is enabled, but files are being returned uncompressed.
26
26
27
27
> [!TIP]
@@ -32,14 +32,16 @@ Compression for your endpoint is enabled, but files are being returned uncompres
32
32
>
33
33
34
34
## Cause
35
+
35
36
There are several possible causes, including:
36
37
37
-
* The requested content is not eligible for compression.
38
-
* Compression is not enabled for the requested file type.
39
-
* The HTTP request did not include a header requesting a valid compression type.
38
+
* The requested content isn't eligible for compression.
39
+
* Compression isn't enabled for the requested file type.
40
+
* The HTTP request didn't include a header requesting a valid compression type.
40
41
* Origin is sending chunked content.
41
42
42
43
## Troubleshooting steps
44
+
43
45
> [!TIP]
44
46
> As with deploying new endpoints, CDN configuration changes take some time to propagate through the network. Usually, changes are applied within 90 minutes. If this is the first time you've set up compression for your CDN endpoint, you should consider waiting 1-2 hours to be sure the compression settings have propagated to the POPs.
45
47
>
@@ -64,7 +66,7 @@ First, we should do a quick sanity check on the request. You can use your brows
64
66
>
65
67
>
66
68
67
-
Navigate to your endpoint in the [Azure portal](https://portal.azure.com) and click the **Configure** button.
69
+
Navigate to your endpoint in the [Azure portal](https://portal.azure.com) and select the **Configure** button.
68
70
69
71
* Verify compression is enabled.
70
72
* Verify the MIME type for the content to be compressed is included in the list of compressed formats.
@@ -77,7 +79,7 @@ Navigate to your endpoint in the [Azure portal](https://portal.azure.com) and cl
77
79
>
78
80
>
79
81
80
-
Navigate to your endpoint in the [Azure portal](https://portal.azure.com) and click the **Manage** button. The supplemental portal will open. Hover over the **HTTP Large** tab, then hover over the **Cache Settings** flyout. Click**Compression**.
82
+
Navigate to your endpoint in the [Azure portal](https://portal.azure.com) and select the **Manage** button. The supplemental portal opens. Hover over the **HTTP Large** tab, then hover over the **Cache Settings** flyout. Select**Compression**.
81
83
82
84
* Verify compression is enabled.
83
85
* Verify the **File Types** list contains a comma-separated list (no spaces) of MIME types.
@@ -91,7 +93,7 @@ Navigate to your endpoint in the [Azure portal](https://portal.azure.com) and cl
91
93
>
92
94
>
93
95
94
-
Using your browser's developer tools, check the response headers to ensure the file is cached in the region where it is being requested.
96
+
Using your browser's developer tools, check the response headers to ensure the file is cached in the region where it's being requested.
95
97
96
98
* Check the **Server** response header. The header should have the format **Platform (POP/Server ID)**, as seen in the following example.
97
99
* Check the **X-Cache** response header. The header should read **HIT**.
@@ -110,7 +112,7 @@ To be eligible for compression, a file must meet the following size requirements
110
112
* Smaller than 3 MB
111
113
112
114
### Check the request at the origin server for a **Via** header
113
-
The **Via** HTTP header indicates to the web server that the request is being passed by a proxy server. Microsoft IIS web servers by default do not compress responses when the request contains a **Via** header. To override this behavior, perform the following:
115
+
The **Via** HTTP header indicates to the web server that the request is being passed by a proxy server. Microsoft IIS web servers by default don't compress responses when the request contains a **Via** header. To override this behavior, perform the following:
114
116
115
117
***IIS 6**: [Set HcNoCompressionForProxies="FALSE" in the IIS Metabase properties](/previous-versions/iis/6.0-sdk/ms525390(v=vs.90))
116
118
***IIS 7 and up**: [Set both **noCompressionForHttp10** and **noCompressionForProxies** to False in the server configuration](https://www.iis.net/configreference/system.webserver/httpcompression)
0 commit comments