addfeoaction

Use this method to create a front end optimization action.

Syntax



Parameters

name

The name of the front end optimization action.
This is mandatory parameter.

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.

Return Value

Returns simpleResult

See Also