X-Wix-Cache-Control

The HTTP X-Wix-Cache-Control response header is an unofficial, Wix-specific header controlling caching behavior at the Wix CDN layer using standard Cache-Control syntax.

Note

The X- prefix for non-standard headers is deprecated per RFC 6648.

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

Takeaway

The X-Wix-Cache-Control header gives Wix's CDN layer its own caching directives, separate from the standard Cache-Control header. The syntax is identical to standard Cache-Control, targeting edge retention rather than browser behavior.

See also

Last updated: March 6, 2026