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-improve-performance.md
+7-10Lines changed: 7 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,27 +2,24 @@
2
2
title: Improve performance by compressing files in Azure CDN | Microsoft Docs
3
3
description: Learn how to improve file transfer speed and increase page-load performance by compressing your files in Azure CDN.
4
4
services: cdn
5
-
documentationcenter: ''
6
5
author: duongau
7
-
manager: danielgi
8
-
editor: ''
9
-
6
+
manager: kumudd
10
7
ms.assetid: af1cddff-78d8-476b-a9d0-8c2164e4de5d
11
8
ms.service: azure-cdn
12
9
ms.workload: tbd
13
10
ms.tgt_pltfrm: na
14
11
ms.topic: how-to
15
-
ms.date: 02/28/2018
12
+
ms.date: 02/27/2023
16
13
ms.author: duau
17
14
18
15
---
19
16
# Improve performance by compressing files in Azure CDN
20
-
File compression is a simple and effective method to improve file transfer speed and increase page-load performance by reducing a file's size before it is sent from the server. File compression can reduce bandwidth costs and provide a more responsive experience for your users.
17
+
File compression is a simple and effective method to improve file transfer speed and increase page-load performance by reducing a file's size before it's sent from the server. File compression can reduce bandwidth costs and provide a more responsive experience for your users.
21
18
22
19
There are two ways to enable file compression:
23
20
24
21
- Enable compression on your origin server. In this case, Azure CDN passes along the compressed files and delivers them to clients that request them.
25
-
- Enable compression directly on the CDN POP servers (*compression on the fly*). In this case, the CDN compresses the files and serves them to the end users, even if they were not compressed by the origin server.
22
+
- Enable compression directly on the CDN POP servers (*compression on the fly*). In this case, the CDN compresses the files and serves them to the end users, even if they don't get compressed by the origin server.
26
23
27
24
> [!IMPORTANT]
28
25
> Azure CDN configuration changes can take some time to propagate through the network:
@@ -105,7 +102,7 @@ If the request supports more than one compression type, brotli compression takes
105
102
106
103
When a request for an asset specifies gzip compression and the request results in a cache miss, Azure CDN performs gzip compression of the asset directly on the POP server. Afterward, the compressed file is served from the cache.
107
104
108
-
If the origin uses Chunked Transfer Encoding (CTE) to send compressed data to the CDN POP, then response sizes greater than 8MB are not supported.
105
+
If the origin uses Chunked Transfer Encoding (CTE) to send compressed data to the CDN POP, then response sizes greater than 8 MB aren't supported.
109
106
110
107
### Azure CDN from Verizon profiles
111
108
@@ -118,13 +115,13 @@ These profiles support the following compression encodings:
118
115
- DEFLATE
119
116
- bzip2
120
117
121
-
Azure CDN from Verizon does not support brotli compression. When the HTTP request has the header `Accept-Encoding: br`, the CDN responds with an uncompressed response.
118
+
Azure CDN from Verizon doesn't support brotli compression. When the HTTP request has the header `Accept-Encoding: br`, the CDN responds with an uncompressed response.
122
119
123
120
### Azure CDN Standard from Akamai profiles
124
121
125
122
For **Azure CDN Standard from Akamai** profiles, all files are eligible for compression. However, a file must be of a MIME type that has been [configured for compression](#enabling-compression).
126
123
127
-
These profiles support gzip compression encoding only. When a profile endpoint requests a gzip-encoded file, it is always requested from the origin, regardless of the client request.
124
+
These profiles support gzip compression encoding only. When a profile endpoint requests a gzip-encoded file, it's always requested from the origin, regardless of the client request.
128
125
129
126
## Compression behavior tables
130
127
The following tables describe Azure CDN compression behavior for every scenario:
0 commit comments