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-verizon-premium-rules-engine-reference-features.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,7 @@ Name | Purpose
169
169
### Age Response Header
170
170
171
171
**Purpose**: Determines whether an Age response header is included in the response sent to the requester.
172
+
172
173
Value|Result
173
174
--|--
174
175
Enabled | The Age response header is included in the response sent to the requester.
@@ -397,6 +398,7 @@ Option|Description
397
398
--|--
398
399
Original Path| Define the relative path to the types of requests whose cache-key is rewritten. A relative path can be defined by selecting a base origin path and then defining a regular expression pattern.
399
400
New Path|Define the relative path for the new cache-key. A relative path can be defined by selecting a base origin path and then defining a regular expression pattern. This relative path can be dynamically constructed through the use of [HTTP variables](cdn-http-variables.md).
401
+
400
402
**Default Behavior:** A request's cache-key is determined by the request URI.
401
403
402
404
[Back to top](#azure-cdn-from-verizon-premium-rules-engine-features)
@@ -484,6 +486,7 @@ text/html| HTML files
484
486
text/css|Cascading Style Sheets (CSS)
485
487
application/x-javascript|Javascript
486
488
application/javascript|Javascript
489
+
487
490
Key information:
488
491
489
492
- Specify multiple Internet media types by delimiting each one with a single space.
@@ -1080,6 +1083,7 @@ Value|Result
1080
1083
--|--
1081
1084
Enabled|Causes the POP to refetch the asset from the origin server.
1082
1085
Disabled|Restores the default behavior. The default behavior is to serve up valid cache assets upon request.
1086
+
1083
1087
This feature is not required for correct caching and content delivery, but may be useful as a workaround. For example, dynamic content generators on origin servers can inadvertently result in 0-byte responses being sent to the POPs. These types of responses are typically cached by the POPs. If you know that a 0-byte response is never a valid response for such content, this feature can prevent these types of assets from being served to your clients.
1084
1088
1085
1089
**Default Behavior:** Disabled.
@@ -1311,6 +1315,7 @@ Option|Description
1311
1315
Code|Select the response code that will be returned to the requester.
1312
1316
Source & Pattern| These settings define a request URI pattern that identifies the type of requests that may be redirected. Only requests whose URL satisfies both of the following criteria will be redirected: <br/> <br/> **Source (or content access point):** Select a relative path that identifies an origin server. This path is the _/XXXX/_ section and your endpoint name. <br/><br/> **Source (pattern):** A pattern that identifies requests by relative path must be defined. This regular expression pattern must define a path that starts directly after the previously selected content access point (see above). <br/> - Ensure that the request URI criteria (that is, Source & Pattern) previously defined doesn't conflict with any match conditions defined for this feature. <br/> - Specify a pattern; if you use a blank value as the pattern, all strings are matched.
1313
1317
Destination| Define the URL to which the above requests will be redirected. <br/><br/> Dynamically construct this URL using: <br/> - A regular expression pattern <br/>- [HTTP variables](cdn-http-variables.md) <br/><br/> Substitute the values captured in the source pattern into the destination pattern using $_n_ where _n_ identifies a value by the order in which it was captured. For example, $1 represents the first value captured in the source pattern, while $2 represents the second value. <br/>
1318
+
1314
1319
It is highly recommended to use an absolute URL. The use of a relative URL may redirect CDN URLs to an invalid path.
1315
1320
1316
1321
**Sample Scenario**
@@ -1358,6 +1363,7 @@ Option|Description
1358
1363
-|-
1359
1364
Source & Pattern | These settings define a request URI pattern that identifies the type of requests that may be rewritten. Only requests whose URL satisfies both of the following criteria will be rewritten: <br/><br/> - **Source (or content access point):** Select a relative path that identifies an origin server. This path is the _/XXXX/_ section and your endpoint name. <br/><br/> - **Source (pattern):** A pattern that identifies requests by relative path must be defined. This regular expression pattern must define a path that starts directly after the previously selected content access point (see above). <br/> Verify that the request URI criteria (that is, Source & Pattern) previously defined doesn't conflict with any of the match conditions defined for this feature. Specify a pattern; if you use a blank value as the pattern, all strings are matched.
1360
1365
Destination |Define the relative URL to which the above requests will be rewritten by: <br/> 1. Selecting a content access point that identifies an origin server. <br/> 2. Defining a relative path using: <br/> - A regular expression pattern <br/> - [HTTP variables](cdn-http-variables.md) <br/> <br/> Substitute the values captured in the source pattern into the destination pattern using $_n_ where _n_ identifies a value by the order in which it was captured. For example, $1 represents the first value captured in the source pattern, while $2 represents the second value.
1366
+
1361
1367
This feature allows the POPs to rewrite the URL without performing a traditional redirect. That is, the requester receives the same response code as if the rewritten URL had been requested.
Copy file name to clipboardExpand all lines: articles/cdn/cdn-verizon-premium-rules-engine-reference.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ Character | Description
51
51
----------|------------
52
52
\ | A backslash is used to escape any of the characters specified in this table. A backslash must be specified directly before the special character that should be escaped.<br/>For example, the following syntax escapes an asterisk: `\*`
53
53
% | A percentage symbol is used to indicate URL encoding (for example, `%20`).
54
-
* | An asterisk is a wildcard that represents one or more characters.
54
+
\* | An asterisk is a wildcard that represents one or more characters.
55
55
Space | A space character indicates that a match condition may be satisfied by either of the specified values or patterns.
56
56
'value' | A single quote does not have special meaning. However, a set of single quotes is used to indicate that a value should be treated as a literal value. It can be used in the following ways:<br><br/>- It allows a match condition to be satisfied whenever the specified value matches any portion of the comparison value. For example, `'ma'` would match any of the following strings: <br/><br/>/business/**ma**rathon/asset.htm<br/>**ma**p.gif<br/>/business/template.**ma**p<br /><br />- It allows a special character to be specified as a literal character. For example, you may specify a literal space character by enclosing a space character within a set of single quotes (that is, `' '` or `'sample value'`).<br/>- It allows a blank value to be specified. Specify a blank value by specifying a set of single quotes (that is, '').<br /><br/>**Important:**<br/>- If the specified value does not contain a wildcard, then it is automatically considered a literal value, which means that it is not necessary to specify a set of single quotes.<br/>- If a backslash does not escape another character in this table, it is ignored when it is specified within a set of single quotes.<br/>- Another way to specify a special character as a literal character is to escape it using a backslash (that is, `\`).
57
57
@@ -63,7 +63,7 @@ Special Character | Description
63
63
------------------|------------
64
64
\ | A backslash escapes the character the follows it, which causes that character to be treated as a literal value instead of taking on its regular expression meaning. For example, the following syntax escapes an asterisk: `\*`
65
65
% | The meaning of a percentage symbol depends on its usage.<br/><br/> `%{HTTPVariable}`: This syntax identifies an HTTP variable.<br/>`%{HTTPVariable%Pattern}`: This syntax uses a percentage symbol to identify an HTTP variable and as a delimiter.<br />`\%`: Escaping a percentage symbol allows it to be used as a literal value or to indicate URL encoding (for example, `\%20`).
66
-
* | An asterisk allows the preceding character to be matched zero or more times.
66
+
\* | An asterisk allows the preceding character to be matched zero or more times.
67
67
Space | A space character is typically treated as a literal character.
68
68
'value' | Single quotes are treated as literal characters. A set of single quotes does not have special meaning.
0 commit comments