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
In this article, you'll learn how Azure Front Door Standard and Premium tier routes and rule sets behave when you have caching enabled. Azure Front Door is a modern Content Delivery Network (CDN) with dynamic site acceleration and load balancing.
19
19
20
-
## Caching architecture
20
+
::: zone-end
21
21
22
-
When caching is configured on your route, Front Door uses a multi-tier caching architecture. When a request is received, the edge site that receives the request checks its cache for a valid response. If none is available, it also checks a regional cache. This approach helps to reduce the amount of traffic sent to your origin server. If no cached response is available, the request is forwarded to the origin.
22
+
::: zone pivot="front-door-classic"
23
23
24
-
Each Front Door edge site manages its own cache, and requests might be served by different edge sites. As a result, you might still see some traffic reach your origin, even if you served cached responses.
24
+
The following document specifies behaviors for Azure Front Door (classic) with routing rules that have enabled caching. Front Door is a modern Content Delivery Network (CDN) with dynamic site acceleration and load balancing, it also supports caching behaviors just like any other CDN.
25
25
26
-
## Request methods
26
+
::: zone-end
27
27
28
-
Only requests that use the `GET` request method are cacheable. All other request methods are always proxied through the network.
28
+
## Caching architecture
29
29
30
-
::: zone-end
30
+
When caching is configured on your route, the edge site that receives each request checks its cache for a valid response. Caching helps to reduce the amount of traffic sent to your origin server. If no cached response is available, the request is forwarded to the origin.
31
31
32
-
::: zone pivot="front-door-classic"
32
+
Each Front Door edge site manages its own cache, and requests might be served by different edge sites. As a result, you might still see some traffic reach your origin, even if you served cached responses.
33
33
34
-
The following document specifies behaviors for Azure Front Door (classic) with routing rules that have enabled caching. Front Door is a modern Content Delivery Network (CDN) with dynamic site acceleration and load balancing, it also supports caching behaviors just like any other CDN.
34
+
## Request methods
35
35
36
-
::: zone-end
36
+
Only requests that use the `GET` request method are cacheable. All other request methods are always proxied through the network.
37
37
38
38
## Delivery of large files
39
39
@@ -202,12 +202,19 @@ If the origin response is cacheable, then the `Set-Cookie` header is removed bef
202
202
203
203
In addition, Front Door attaches the `X-Cache` header to all responses. The `X-Cache` response header includes one of the following values:
204
204
205
-
-`TCP_HIT`: The first byte of the request is a cache hit in the Front Door edge.
206
-
-`TCP_REMOTE_HIT`: The first byte of the request is a cache hit in the regional cache (origin shield layer) but a miss in the edge cache.
205
+
-`TCP_HIT` or `TCP_REMOTE_HIT`: The first byte of the request is a cache hit, and content is served from the Front Door cache.
207
206
-`TCP_MISS`: The first byte of the request is a cache miss, and the content is served from the origin.
208
207
-`PRIVATE_NOSTORE`: Request can't be cached because the *Cache-Control* response header is set to either *private* or *no-store*.
209
208
-`CONFIG_NOCACHE`: Request is configured to not cache in the Front Door profile.
210
209
210
+
::: zone pivot="front-door-standard-premium"
211
+
212
+
## Logs and reports
213
+
214
+
The [Front Door Access Log](how-to-logs.md#access-log) includes the cache status for each request. Also, [reports](standard-premium/how-to-reports.md#caching) include information about how Front Door's cache is used in your application.
Copy file name to clipboardExpand all lines: articles/frontdoor/standard-premium/how-to-logs.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ Azure Front Door currently provides individual API requests with each entry havi
78
78
| Endpoint | The domain name of AFD endpoint, for example, contoso.z01.azurefd.net |
79
79
| HttpStatusCode | The HTTP status code returned from Azure Front Door. If a request to the the origin timeout, the value for HttpStatusCode is set to **0**.|
80
80
| Pop | The edge pop, which responded to the user request. |
81
-
| Cache Status | Provides the status code of how the request gets handled by the CDN service when it comes to caching. Possible values areHIT: The HTTP request was served from AFD edge POP cache. <br> **MISS**: The HTTP request was served from origin. <br/> **PARTIAL_HIT**: Some of the bytes from a request got served from AFD edge POP cache while some of the bytes got served from origin for object chunking scenarios. <br> **CACHE_NOCONFIG**: Forwarding requests without caching settings, including bypass scenario. <br/> **PRIVATE_NOSTORE**: No cache configured in caching settings by customers. <br> **REMOTE_HIT**: The request was served by parent node cache. <br/> **N/A**:** Request that was denied by Signed URL and Rules Set. |
81
+
| Cache Status | Provides the status code of how the request gets handled by the CDN service when it comes to caching. Possible values are:<ul><li>`HIT` and `REMOTE_HIT`: The HTTP request was served from the Front Door cache.</ul><ul>`MISS`: The HTTP request was served from theorigin.</li><li> `PARTIAL_HIT`: Some of the bytes from a request were served from the Front Door cache, and some of the bytes were served from origin. This status occurs in [object chunking](../front-door-caching.md#delivery-of-large-files) scenarios.</li><li>`CACHE_NOCONFIG`: Request was forwarded without caching settings, including bypass scenario.</li><li>`PRIVATE_NOSTORE`: No cache configured in caching settings by customers.</li><li>`N/A`: The request was denied by a signed URL and rules engine. |
82
82
| MatchedRulesSetName | The names of the rules that were processed. |
83
83
| RouteName | The name of the route that the request matched. |
84
84
| ClientPort | The IP port of the client that made the request. |
0 commit comments