header-logo
Learn how to use Wix to build your site and business.
Design and manage your site using intuitive Wix features.
Manage subscriptions, plans and invoices.
Run your business and connect with members.
Learn to purchase, connect or transfer a domain to your site.
Get tools to grow your business and web presence.
Boost your visibility with SEO and marketing tools.
Get advanced features to help you work more efficiently.
Find solutions, learn about known issues or contact us.
placeholder-preview-image
Improve your skills with our courses and tutorials.
Get tips for web design, marketing and more.
Learn to increase organic site traffic from search engines.
Build a custom site using our full-stack platform.
Get matched with a specialist to help you reach your goals.
placeholder-preview-image

Site Performance: Caching Pages to Optimize Loading Speed

5 min
In this article
  • How caching works
  • Multiple cached versions for different visitors
  • Caching and site performance metrics
  • Enabling and disabling caching on site pages
  • Adjusting site-wide performance settings
  • FAQs
Cache your site pages to speed up their loading time. When a page is cached, its content and elements aren't rendered from scratch for each visitor. Instead, most visitors see a saved (cached) version of the page that loads much faster.
Caching is automatically enabled for most of your pages, but you may need to manually enable it in some cases (e.g. pages that contain Velo code).

How caching works

A cache is a temporary storage area, where versions of your pages are saved so they take less time to load. Wix uses SSR (server-side rendering) to cache or "save" pages to a content delivery network (CDN).
Most site pages are cached automatically after receiving their first visitor. The next time a visitor requests the page, the saved version is displayed. This prevents all of the page's elements and assets from having to load from scratch. 
The cached version is usually stored for up to a week on our servers. When this duration elapses, the page is cleared and removed from the CDN. However, the page will be cached again after the next visitor loads it.

Multiple cached versions for different visitors

Distinct cached copies of the same page may be created according to your visitors' geographic locations, device types, and other parameters. 
When a page is cached, it loads quicker for future visitors who share the same parameters as the first visitor. If the next visitor doesn't share these parameters, they see the regular version of the page so it doesn't load as quickly.
However, their visit creates another cached version based on their specific parameters. Any subsequent visitors with the same parameters see the additional cached version that was created.

Caching and site performance metrics

Cached pages may help to improve your overall site performance, including metrics like LCP (largest contentful paint), and FCP (first contentful paint). This can improve your site's core web vitals score and overall search results ranking.
As most of the site is already loaded on the Wix servers, your visitors' devices don't need to do as much processing. The site is also rendered from the nearest geographical CDN to the device, which can encourage faster loading.

Enabling and disabling caching on site pages

For most pages, caching is enabled automatically. However, if you have custom code on a page that doesn't have any issues with page caching (e.g. it doesn’t access external data sources), you can manage it manually.
Alternatively, if the page contains custom code and information that needs to be externally retrieved each time a visitor loads the page, you can also prevent the page from being cached completely.
Wix Editor
Studio Editor
  1. Go to your editor.
  2. Click Pages & Menu on the left side of the editor. 
  3. Hover over the relevant page and click the More Actions icon .
  4. Click Settings.
  5. Click Advanced Settings
  6. Click the Manually control caching for this page toggle and choose what you want to do:
    • Enabled: You can manually control the caching for this page.
      • How often do you want to reset this page's cache?: Choose how frequently your page cache resets from the dropdown menu, or select Never (disable caching) to prevent the page from being cached altogether.
    • Disabled: The page will be cached automatically.
The advanced settings of a page in the Wix Editor.

Adjusting site-wide performance settings

Improve loading time and create the best experience for your site visitors by adjusting your site's performance settings. By default, SWR (Stale While Revalidate) is enabled so site visitors see cached content while fresh data is fetched in the background and saved to the cache for future use. If you've upgraded your site, you can disable SWR to have your site load fresh content instead of cached data. 

You can also clear all pages from the CDN cache to ensure that your next site visitors receive fresh content instead of cached data. 

To adjust site-wide performance settings:

  1. Go to Settings in your site's dashboard.
  2. Type Website Performance Settings in the search bar and select it from the results. 
  3. Choose what you want to do next:
    • Enable SWR for cached content while updating: Click the Enable SWR to show cached content while updating toggle to change how your live site loads data:
      • Enabled: Show cached content while fetching fresh data in the background. Visitors will see content faster, while updates are retrieved for future requests.
      • Disabled: Cached content will not be displayed while new data is being fetched.
    • Clear all pages from the CDN cache: Click Clear Site Cache to delete cached pages from the CDN.
      Note: The first visitor after clearing the cache may experience slightly slower loading times.
A screenshot of website performance settings in your Wix site dashboard.

FAQs

Click below to read answers to our most frequently asked questions on page caching.