X-Wix-Cache-Control

Separating CDN-level cache policy from browser cache policy on Wix-hosted sites is the purpose of the X-Wix-Cache-Control unofficial response header, which uses standard Cache-Control syntax to target the Wix CDN layer.

Note

The "X-" naming convention for HTTP headers, "X" referring to "experimental", has been deprecated and needs to be transitioned to the formal naming convention for HTTP headers.

Usage

Wix operates its own content delivery network for Wix-hosted sites. The X-Wix-Cache-Control header gives the Wix CDN layer its own caching instructions, independent of the standard Cache-Control header governing browser caching.

This separation allows Wix to apply different retention policies at the CDN edge than what the browser receives. A response marked public, max-age=604800 in X-Wix-Cache-Control stays cached at Wix's edge nodes for a week, while the standard Cache-Control header on the same response instructs the browser to cache for a shorter or longer period. The two headers work in parallel, each addressing a different caching audience.

The directive syntax mirrors standard Cache-Control exactly, making the header familiar to anyone working with HTTP Caching.

Directives

public

Marks the response as cacheable by the Wix CDN. This directive signals the content is not user-specific and safe to store at shared edge nodes.

max-age

Specifies the number of seconds the Wix CDN retains the cached response. After this period expires, the CDN fetches a fresh copy from the origin.

Example

A short-lived resource uses a low max-age, keeping the CDN copy fresh for 30 seconds before revalidation.

X-Wix-Cache-Control: public, max-age=30

A standard page cached for one day at the Wix CDN edge.

X-Wix-Cache-Control: public, max-age=86400

A static asset intended for long-term caching at the Wix CDN layer, retained for one week.

X-Wix-Cache-Control: public, max-age=604800

Both headers often appear together in Wix responses. The X-Wix-Cache-Control value targets CDN behavior while Cache-Control addresses the browser.

Cache-Control: public, max-age=3600
X-Wix-Cache-Control: public, max-age=604800

See also

Last updated: April 4, 2026