Configuration

Edgemesh® Server can be configured using the API and Portal.

Properties

Below are the available configuration options for Edgemesh® Server:

cdnTrack

description

The deployment track for Edgemesh® Client and other static resources.

type
string (stable | canary | nightly)
default
stable

apiTrack

description

The deployment track for Edgemesh® API.

type
string (stable | canary | nightly)
default
stable

workerTrack

description

The deployment track for Edgemesh® Server.

type
string (stable | canary | nightly)
default
stable

enableCaching

description

Enables the edge cache feature.

type
boolean
default
true

revalidateTime

description

The cache revalidation time in seconds. Pages will be continuously revalidated, but other resources are revalidated on an interval. The value is in seconds, defaulting to 15 minutes.

type
number
default
900

defaultMaxAge

description

When no cache control header is present on a resource, Edgemesh® sets a default header. This value is the s-maxage, or the time the resource will be cached at the edge, defaulting to 7 days.

type
number
default
604800

enablePrerender

description

Dynamic pre-rendering enabled. Bots and search engines will be served a pre-rendered version of the page. Pre-rendered pages are faster and better for indexing, but lack interactivity.

type
boolean
default
true

enableAnalytics

description

Enables the tag-less tracking and analytics data collection.

type
boolean
default
true

enableImageOptimization

description

Enables the image optimization feature.

type
boolean
default
true

defaultImageQuality

description

The default quality for image optimization. This value can be overridden for a specific image via the em-quality search parameter. The default of 75 is a good balance between clarity and performance.

type
number
default
75

enableBotProtection

description

Enables ad fraud and bot traffic protection.

type
boolean
default
true

unshardImages

description

Un-shard image src and srcsets.

type
boolean
default
true

unshardCss

description

Un-shard stylesheet href attributes and stylesheet content.

type
boolean
default
true

unshardScripts

description

Un-shard script tag src attributes.

type
boolean
default
true

minifyHtml

description

Minifies HTML content and strips comments.

type
boolean
default
true

minifyCss

description

Minifies stylesheet content and strips comments.

type
boolean
default
true

minifyScripts

description

Minifies javascript content and strips comments.

type
boolean
default
true

injectEdgemesh

description

Inject the Edgemesh® Client script.

type
boolean
default
true

shopifyPlugin

description

Enables the Shopify plugin.

type
boolean
default
false

Made withby Edgemesh Corporation