---
title: "Page caches and speed plugins – Modal Kit Docs"
description: "Modals work with page caches as they are: opening one never asks WordPress for anything. A few settings change the timing."
language: "en-US"
canonical_url: "https://modalkitwp.com/docs/caching/"
source_url: "https://modalkitwp.com/docs/caching/"
content_type: "text/markdown"
---

Get started

[Install and set up](https://modalkitwp.com/docs/install/)

[Build your first modal](https://modalkitwp.com/docs/first-modal/)

[Defaults for new modals](https://modalkitwp.com/docs/defaults/)

[Who can do what](https://modalkitwp.com/docs/who-can-do-what/)

Opening and showing

[Choose when it opens](https://modalkitwp.com/docs/triggers/)

[Open it from a link or button](https://modalkitwp.com/docs/open-from-a-link/)

[Decide where and how often](https://modalkitwp.com/docs/display-rules/)

[Limits across all modals](https://modalkitwp.com/docs/limits/)

[Test what visitors see](https://modalkitwp.com/docs/test-what-visitors-see/)

Look and feel

[Styles](https://modalkitwp.com/docs/styles/)

[Accessibility](https://modalkitwp.com/docs/accessibility/)

[Video](https://modalkitwp.com/docs/video/)

[Move modals between sites](https://modalkitwp.com/docs/move-modals-between-sites/)

Pro and forms

[Activate Pro](https://modalkitwp.com/docs/activate-pro/)

[Add a form](https://modalkitwp.com/docs/forms/)

[Connect your email service](https://modalkitwp.com/docs/email-services/)

[Copy sign-ups to a webhook, and test](https://modalkitwp.com/docs/webhooks/)

[Keep bots out](https://modalkitwp.com/docs/bot-check/)

[Check deliveries](https://modalkitwp.com/docs/submissions/)

More in Pro

[Multi-step modals](https://modalkitwp.com/docs/multi-step/)

[Games and prizes](https://modalkitwp.com/docs/games/)

[WooCommerce](https://modalkitwp.com/docs/woocommerce/)

[Results and analytics](https://modalkitwp.com/docs/results/)

[A/B testing](https://modalkitwp.com/docs/ab-testing/)

[Audience rules](https://modalkitwp.com/docs/audience-rules/)

[Age gate, teasers and more blocks](https://modalkitwp.com/docs/more-pro-blocks/)

Speed and hosting

[Page caches and speed plugins](https://modalkitwp.com/docs/caching/)

[Static exports](https://modalkitwp.com/docs/static-exports/)

[Multisite networks](https://modalkitwp.com/docs/multisite/)

[Sites behind a proxy or CDN](https://modalkitwp.com/docs/proxies-and-cdns/)

Help

[Updates](https://modalkitwp.com/docs/updates/)

[A modal doesn’t show](https://modalkitwp.com/docs/troubleshooting/)

Contents ▾

Get started

[Install and set up](https://modalkitwp.com/docs/install/)

[Build your first modal](https://modalkitwp.com/docs/first-modal/)

[Defaults for new modals](https://modalkitwp.com/docs/defaults/)

[Who can do what](https://modalkitwp.com/docs/who-can-do-what/)

Opening and showing

[Choose when it opens](https://modalkitwp.com/docs/triggers/)

[Open it from a link or button](https://modalkitwp.com/docs/open-from-a-link/)

[Decide where and how often](https://modalkitwp.com/docs/display-rules/)

[Limits across all modals](https://modalkitwp.com/docs/limits/)

[Test what visitors see](https://modalkitwp.com/docs/test-what-visitors-see/)

Look and feel

[Styles](https://modalkitwp.com/docs/styles/)

[Accessibility](https://modalkitwp.com/docs/accessibility/)

[Video](https://modalkitwp.com/docs/video/)

[Move modals between sites](https://modalkitwp.com/docs/move-modals-between-sites/)

Pro and forms

[Activate Pro](https://modalkitwp.com/docs/activate-pro/)

[Add a form](https://modalkitwp.com/docs/forms/)

[Connect your email service](https://modalkitwp.com/docs/email-services/)

[Copy sign-ups to a webhook, and test](https://modalkitwp.com/docs/webhooks/)

[Keep bots out](https://modalkitwp.com/docs/bot-check/)

[Check deliveries](https://modalkitwp.com/docs/submissions/)

More in Pro

[Multi-step modals](https://modalkitwp.com/docs/multi-step/)

[Games and prizes](https://modalkitwp.com/docs/games/)

[WooCommerce](https://modalkitwp.com/docs/woocommerce/)

[Results and analytics](https://modalkitwp.com/docs/results/)

[A/B testing](https://modalkitwp.com/docs/ab-testing/)

[Audience rules](https://modalkitwp.com/docs/audience-rules/)

[Age gate, teasers and more blocks](https://modalkitwp.com/docs/more-pro-blocks/)

Speed and hosting

[Page caches and speed plugins](https://modalkitwp.com/docs/caching/)

[Static exports](https://modalkitwp.com/docs/static-exports/)

[Multisite networks](https://modalkitwp.com/docs/multisite/)

[Sites behind a proxy or CDN](https://modalkitwp.com/docs/proxies-and-cdns/)

Help

[Updates](https://modalkitwp.com/docs/updates/)

[A modal doesn’t show](https://modalkitwp.com/docs/troubleshooting/)

[Docs](https://modalkitwp.com/docs/) / Speed and hosting

# Page caches and speed plugins

Modals work with page caches as they are: opening one never asks WordPress for anything. A few settings change the timing.

-

1

**Delay JavaScript** (WP Rocket, WP-Optimize) holds modals that open by themselves until the visitor first moves or taps. To open them on time, add `/content/modules/modal-kit` to the delay exclusions. The path covers Pro too.

-

2

**Remove unused CSS** services can drop the styles of a closed modal. In WP Rocket, keep `/content/modules/modal-kit` and `/content/modules/modal-kit-pro` stylesheets whole in its safelist. LiteSpeed Cache and Jetpack Boost are told to leave them whole.

-

3

In **Breeze**, don’t combine its lazy-load with **Delay all JavaScript**: its lazy-loader then never starts.

-

4

Country rules make each visitor’s page differ, so your cache must vary by country or skip those pages.

Good to know

With nothing to set, Modal Kit tells SiteGround Speed Optimizer, LiteSpeed Cache, W3 Total Cache, Breeze, Jetpack Boost, 10Web Booster and NitroPack to leave its scripts and styles alone, and keeps its scripts off their CDNs.

Modals wait while a page is prerendered, and on LiteSpeed’s Guest Mode reload, so a visit counts once.

[Page cache test results →](https://modalkitwp.com/performance/#caching)

## Still stuck? We’ll help.

[Get support](https://modalkitwp.com/support/)

[Read the FAQ](https://modalkitwp.com/faq/)
