Skip to main content

Full page cache and Varnish

Overview​

Magento's full page cache, built in or Varnish, stores a copy of a page and shows it to later visitors instead of building the page again. A cached page holds the form the same way for each of them. The parts listed below that belong to one visitor reach their browser separately and aren't stored in the cached copy.

What is cached and what isn't​

Part of the form Kept in the cached page? Notes
Fields, sections, texts and layout Yes The same for every visitor of that store view.
Security key the form sends with each submission No The page holds an empty key. The visitor's browser fills it in when they send the form.
A signed-in customer's details in pre-filled fields No Filled in the browser. See Pre-fill with Customer Data in Field settings: General.
The customer's orders in an Order field No Filled in the browser.
Whether a customer already answered a Survey Mode form No Checked in the browser.
Thank-you message and confirmation No Forms always send without reloading the page, and the message comes back with the answer.
A popup or slide-out form that loads when it's opened Yes, when every visitor sees the same form Fetched when the visitor opens it. A form limited to customer groups, or one that differs from visitor to visitor, is fetched for each visitor and never cached.
On Load Script No Fetched when the form starts, and never cached.
The scripts that start forms and check fields Yes, by the browser and any cache in front of the store They're the same for every visitor. Their address changes after you clean Magento's configuration, translation or layout cache, or deploy new static files, so visitors get the new version.

When cached pages with a form refresh​

Magento marks each cached page with the forms it shows. These changes take every page with that form out of the cache, so the next visitor gets the new version:

  • you save the form, or click Publish Changes in the builder; this covers fields, sections and logic rules;
  • you change the form's texts for a store view, or its confirmation message;
  • you delete the form;
  • a new submission arrives, or a submission of that form changes. Pages with a WebForms: Results widget refresh the same way.

The pages refresh once your change is saved in full, so a visitor who opens the page at that moment can't put the old form back into the cache.

On Magento 2.4.9 with the default file cache, some pages can keep the old form after this, for up to a day. See Old pages or settings stay after clearing the cache.

On a busy store, a form that gets many submissions keeps its pages refreshing often.

Varnish and other caches​

  • WebForms uses Magento's standard refresh, so a Varnish cache set up for Magento gets it the same way as the built-in cache. WebForms adds no Varnish settings of its own.
  • A cache that doesn't get Magento's refresh, such as some CDNs in front of a store, can keep the old page. Refresh it the way its provider describes.
  • After upgrading from WebForms 3, clear the Magento page cache and any Varnish or CDN cache. Pages stored before the upgrade can still hold old form markup.
  • A field's Default Value is plain text, the same for every visitor. To put the customer's own name or email into a field, use Pre-fill with Customer Data, which works on cached pages.

What's next​

Applies to WebForms 4Last reviewed November 24, 2026