ADC CLI Commands

feo-action

The following operations can be performed on “feo-action”:

add unset show rm set

add feo action

Create a front end optimization action.

Synopsis

add feo action [-pageExtendCache] [] [-imgShrinkToAttrib] [-imgGifToPng] [-imgToWebp] [-imgToJpegXR] [-imgInline] [-cssImgInline] [-jpgOptimize] [-imgLazyLoad] [-cssMinify] [-cssInline] [-cssCombine] [-convertImportToLink] [-jsMinify] [-jsInline] [-htmlMinify] [-cssMoveToHead] [-jsMoveToEND] [-domainSharding ...] [-clientSideMeasurements]

Arguments

name The name of the front end optimization action.

pageExtendCache Extend the time period during which the browser can use the cached resource.

cacheMaxage Maxage for cache extension. Default value: 30 Minimum value: 0 Maximum value: 360

imgShrinkToAttrib Shrink image dimensions as per the height and width attributes specified in the tag.

imgGifToPng Convert GIF image formats to PNG formats.

imgToWebp Convert JPEG, GIF, PNG image formats to WEBP format.

imgToJpegXR Convert JPEG, GIF, PNG image formats to JXR format.

imgInline Inline images whose size is less than 2KB.

cssImgInline Inline small images (less than 2KB) referred within CSS files as background-URLs

jpgOptimize Remove non-image data such as comments from JPEG images.

imgLazyLoad Download images, only when the user scrolls the page to view them.

cssMinify Remove comments and whitespaces from CSSs.

cssInline Inline CSS files, whose size is less than 2KB, within the main page.

cssCombine Combine one or more CSS files into one file.

convertImportToLink Convert CSS import statements to HTML link tags.

jsMinify Remove comments and whitespaces from JavaScript.

jsInline Convert linked JavaScript files (less than 2KB) to inline JavaScript files.

htmlMinify Remove comments and whitespaces from an HTML page.

cssMoveToHead Move any CSS file present within the body tag of an HTML page to the head tag.

jsMoveToEND Move any JavaScript present in the body tag to the end of the body tag.

domainSharding Domain name of the server

dnsShards Set of domain names that replaces the parent domain.

clientSideMeasurements Send AppFlow records about the web pages optimized by this action. The records provide FEO statistics, such as the number of HTTP requests that have been reduced for this page. You must enable the Appflow feature before enabling this parameter.

unset feo action

Modify a front end optimization action..Refer to the set feo action command for meanings of the arguments.

Synopsis

unset feo action [-pageExtendCache] [-imgShrinkToAttrib] [-imgGifToPng] [-imgToWebp] [-imgToJpegXR] [-imgInline] [-cssImgInline] [-jpgOptimize] [-imgLazyLoad] [-cssMinify] [-cssInline] [-cssCombine] [-convertImportToLink] [-jsMinify] [-jsInline] [-htmlMinify] [-cssMoveToHead] [-jsMoveToEND] [-clientSideMeasurements] [-domainSharding]

show feo action

Display the front end optimization actions defined, including the built-in actions.

Synopsis

show feo action []

Arguments

name The name of the front end optimization action.

Output

stateflag pageExtendCache Extend the time period during which the browser can use the cached resource.

cacheMaxage Maxage for cache extension.

imgShrinkToAttrib Shrink image dimensions as per the height and width attributes specified in the tag.

imgGifToPng Convert GIF image formats to PNG formats.

imgToWebp Convert JPEG, GIF, PNG image formats to WEBP format.

imgToJpegXR Convert JPEG, GIF, PNG image formats to JXR format.

imgAddDimensions Add dimension attributes to images, if not specified within the tag.

imgShrinkForMobile Serve smaller images for mobile users.

imgWeaken Reduce the image quality.

imgInline Inline images whose size is less than 2KB.

cssImgInline Inline small images (less than 2KB) referred within CSS files as background-URLs

jpgOptimize Remove non-image data such as comments from JPEG images.

jpgProgressive Convert JPEG image formats to progressive formats.

imgLazyLoad Download images, only when the user scrolls the page to view them.

cssMinify Remove comments and whitespaces from CSSs.

cssInline Inline CSS files, whose size is less than 2KB, within the main page.

cssCombine Combine one or more CSS files into one file.

cssFlattenImports Replace CSS import statements with the file content.

convertImportToLink Convert CSS import statements to HTML link tags.

jsMinify Remove comments and whitespaces from JavaScript.

jsInline Convert linked JavaScript files (less than 2KB) to inline JavaScript files.

jsCombine Combine one or more JavaScript files into one file.

htmlMinify Remove comments and whitespaces from an HTML page.

htmlRmDefaultAttribs Remove default redundant attributes from an HTML file.

htmlRmAttribQuotes Remove unnecessary quotes present within the HTML attributes.

htmlTrimUrls Trim URLs.

cssMoveToHead Move any CSS file present within the body tag of an HTML page to the head tag.

jsMoveToEND Move any JavaScript present in the body tag to the end of the body tag.

domainSharding Domain name of the server

dnsShards Set of domain names that replaces the parent domain.

clientSideMeasurements Send AppFlow records about the web pages optimized by this action. The records provide FEO statistics, such as the number of HTTP requests that have been reduced for this page. You must enable the Appflow feature before enabling this parameter.

hits The number of times the action has been taken.

undefHits Total number of undefined policy hits.

builtin Flag to determine if front end optimization action is built-in or not.

feature The feature to be checked while applying this config

devno count

rm feo action

Remove the specified front end optimization action.

Synopsis

rm feo action

Arguments

name The name of the front end optimization action.

set feo action

Modify a front end optimization action.

Synopsis

set feo action [-pageExtendCache] [] [-imgShrinkToAttrib] [-imgGifToPng] [-imgToWebp] [-imgToJpegXR] [-imgInline] [-cssImgInline] [-jpgOptimize] [-imgLazyLoad] [-cssMinify] [-cssInline] [-cssCombine] [-convertImportToLink] [-jsMinify] [-jsInline] [-htmlMinify] [-cssMoveToHead] [-jsMoveToEND] [-domainSharding ...] [-clientSideMeasurements]

Arguments

name The name of the front end optimization action.

pageExtendCache Extend the time period during which the browser can use the cached resource.

cacheMaxage Maxage for cache extension. Default value: 30 Minimum value: 0 Maximum value: 360

imgShrinkToAttrib Shrink image dimensions as per the height and width attributes specified in the tag.

imgGifToPng Convert GIF image formats to PNG formats.

imgToWebp Convert JPEG, GIF, PNG image formats to WEBP format.

imgToJpegXR Convert JPEG, GIF, PNG image formats to JXR format.

imgInline Inline images whose size is less than 2KB.

cssImgInline Inline small images (less than 2KB) referred within CSS files as background-URLs

jpgOptimize Remove non-image data such as comments from JPEG images.

imgLazyLoad Download images, only when the user scrolls the page to view them.

cssMinify Remove comments and whitespaces from CSSs.

cssInline Inline CSS files, whose size is less than 2KB, within the main page.

cssCombine Combine one or more CSS files into one file.

convertImportToLink Convert CSS import statements to HTML link tags.

jsMinify Remove comments and whitespaces from JavaScript.

jsInline Convert linked JavaScript files (less than 2KB) to inline JavaScript files.

htmlMinify Remove comments and whitespaces from an HTML page.

cssMoveToHead Move any CSS file present within the body tag of an HTML page to the head tag.

jsMoveToEND Move any JavaScript present in the body tag to the end of the body tag.

domainSharding Domain name of the server

dnsShards Set of domain names that replaces the parent domain.

clientSideMeasurements Send AppFlow records about the web pages optimized by this action. The records provide FEO statistics, such as the number of HTTP requests that have been reduced for this page. You must enable the Appflow feature before enabling this parameter.

feo-action