New-AzFrontDoorCacheConfigurationObject
Create an in-memory object for CacheConfiguration.
Syntax
Default (Default)
New-AzFrontDoorCacheConfigurationObject
[-CacheDuration <TimeSpan>]
[-DynamicCompression <String>]
[-QueryParameter <String>]
[-QueryParameterStripDirective <String>]
[<CommonParameters>]
Description
Create an in-memory object for CacheConfiguration.
Examples
Example 1: Create a cache configuration object
New-AzFrontDoorCacheConfigurationObject -CacheDuration "0.12:00:00" -DynamicCompression "Enabled" -QueryParameterStripDirective "StripAllExcept"
CacheDuration DynamicCompression QueryParameter QueryParameterStripDirective
------------- ------------------ -------------- ----------------------------
12:00:00 Enabled StripAllExcept
Create a cache configuration object.
Parameters
-CacheDuration
The duration for which the content needs to be cached. Allowed format is in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). HTTP requires the value to be no more than a year.
Parameter properties
| Type: | TimeSpan |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-DynamicCompression
Whether to use dynamic compression for cached content.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-QueryParameter
query parameters to include or exclude (comma separated).
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-QueryParameterStripDirective
Treatment of URL query terms when forming the cache key.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.