Generation styles: Hybrid & Strict
Hybrid keeps forms and interactive parts working. Strict builds a standalone static mirror. Choose per site, per category or per page.
Two ways to turn a dynamic page into a static one
A dynamic page is built by WordPress each time it is asked for. A static page is a copy of that page, built once and saved as a file. MyStaticWP can build that static copy in two styles, and the style decides what the copy can still do. It has nothing to do with the on/off switch: the switch decides whether visitors receive static pages, the style decides what a static page contains.
- Hybrid keeps the page exactly as WordPress rendered it, so forms and interactive elements keep working.
- Strict builds a standalone HTML, CSS and JS mirror of the page in its own folder, and replaces every form with a contact message.
You choose one style for the whole site, and you can override it for a category of content or for a single page. A page can also be kept fully dynamic. This page explains each style, when to pick which, and how to set them.
The two styles side by side
| Hybrid | Strict | |
|---|---|---|
| Static copy | The page exactly as WordPress rendered it. | A true HTML, CSS and JS mirror of the page, in its own folder. |
| Forms | Kept, and they keep working. | Replaced by a contact message with your address. |
| Interactive parts | Kept as WordPress rendered them. | Menus, sliders and styling keep working. Anything that needs a live backend does not. |
| Folder | wp-content/uploads/mystaticwp |
wp-content/mystaticwp-strict, separate from your media library. |
| Default | Yes. | No: you choose it. |
| Best for | Pages with forms, or with plugins that need the page to go through WordPress. | Pages with no live backend: articles, legal pages, landing pages. |
Both styles are served the same way. On Apache and LiteSpeed, the web server hands out the static file directly, whichever style it is in.
Hybrid in detail
Hybrid is the default and the safest choice. MyStaticWP visits the page as an anonymous visitor would, and saves the HTML exactly as WordPress returned it. Nothing is removed or rewritten.
- A form stays a form. When a visitor submits it, the request goes to WordPress as usual.
- Plugins that decorate the page at render time are captured with their output: a form plugin, a honeypot, a consent bar, a slider.
- A form carries a security token that expires after a while. A Hybrid page keeps the token it had when it was built, so MyStaticWP also rebuilds every page each day. This keeps the tokens fresh on pages nobody edits.
What Hybrid does not do is add anything: the static page is as heavy as WordPress made it. The gain comes from not building the page again for each visit, not from changing what the page contains.
Strict in detail
Strict builds a standalone static mirror of the page in wp-content/mystaticwp-strict. The folder is separate from your media library and is easy to delete as a whole. It lives in wp-content rather than inside the plugin’s own folder, so a plugin update never wipes it.
Menus, sliders and styling keep working. Two things change:
- Every form is replaced. Each
<form>in the page becomes a small box with the sentence This form is not available here. and your contact address as a mail link. This applies to every form, not only contact forms: a search box or a comment form in the page is replaced too. - Anything that needs a live backend stops working. A cart, a members-only page, an account page, an AJAX filter, a load-more button: a static copy cannot ask WordPress anything.
The sentence follows the language of the page, read from its <html lang> attribute: French, Spanish, or English for any other language. It works with Polylang, WPML or any other multilingual plugin, because it does not depend on them.
Set the Contact address once, on the Switch screen. It is shared by every replaced form, in Strict style and in the export. Leave it empty to show the message without a link.
Which style for which page
| Page | Style | Why |
|---|---|---|
| Contact page | Hybrid | A contact page with a form: the form, and any anti-spam plugin that depends on the page going through WordPress, keep working. |
| Newsletter form | Hybrid | On a home page with a newsletter form, Strict would replace the form. Use Strict only if you accept that. |
| Articles, legal | Strict | An article, a legal page or a landing page has no form and no live backend: a standalone static copy is enough. |
| Search, comments | Hybrid | A page with a search box or a comment form: Strict replaces every form in the page, search boxes and comment forms included. |
| Products | Hybrid | On a WooCommerce product, the add-to-cart button is a form. |
| Cart, checkout | Always live | The WooCommerce cart, checkout and account pages are never made static, whatever the style. See below. |
When in doubt, stay with Hybrid, and use the preview described below to see what Strict would do to a page before you choose it.
Set the style for the whole site
- Open MyStaticWP → Switch.
- Under Generation style, choose Hybrid or Strict.
- If you choose Strict, fill in the Contact address.
- Click Save.
This is the default for every page that has no category or page override. The screen confirms with Generation style saved — cache rebuilt and the number of pages rebuilt.
Set the style for a category of content
Open MyStaticWP → Pages. The first table, Categories, lets you set a default for a whole kind of content:
| Category | What it covers |
|---|---|
| Pages | Every WordPress page. |
| Blog (posts) | Every post. |
| WooCommerce (products) | Every product. Shown only when WooCommerce is active. |
| Other content types | Any other public content type on your site. |
Each category has a list with three choices: the site-wide style, Hybrid, or Strict. The first choice shows the current site-wide style in brackets, for example Site-wide style (Strict). Click Save and the static pages of that category are rebuilt.
Set the style for a single page
Below the categories, the Individual overrides section lists every page under its category. Each row has a list:
| Choice | Effect |
|---|---|
| Default style | Follows the category style, or the site-wide style if the category has none. The current style is shown in brackets. |
| Hybrid | Pins this page to Hybrid, whatever the category and the site say. |
| Strict | Pins this page to Strict, whatever the category and the site say. |
| Always dynamic | “Always dynamic (never cached)”: this page never becomes static. It is always built by WordPress. |
A page’s own choice always wins. Then comes its category, then the site-wide style. Click Save to apply.
Preview before you save
Every row of the Pages screen has a Preview button. It opens the page as its static copy would be in the style currently selected in that row, even if you have not saved that choice yet. A banner at the top says MyStaticWP preview — this page has not been saved, no visitor sees this.
Use it to see what Strict does to a page: which forms are replaced, and whether anything else disappears. The preview is a rendering, not a promise: it shows the page at this moment, for an anonymous visitor.
A page set to Always dynamic has nothing to preview, since it is always served live as it is.
What happens when you change a style
- Saving a style, at any level, rebuilds the affected static pages by itself. You do not need to click Regenerate all.
- Visitors keep receiving the previous static copy until the new one is written. Nothing is emptied first.
- Both folders can exist at the same time. Each page is served from the folder of its own style.
- If a rebuild fails on a page, the previous static copy stays. The Last regeneration journal on the Switch screen shows which page failed and why.
Pages that never become static
Some pages are always built by WordPress, whatever the style:
| Page | Why |
|---|---|
| Cart, checkout | The WooCommerce cart, checkout and account pages have different content for each visitor. They are labelled Always live on the Pages screen, and there is nothing to choose. |
| Always dynamic | Pages you set to Always dynamic: you asked for it. |
| Query string | Any address with a query string, for example a search (?s=) or a tracking parameter (?utm_source=). |
| Logged in | Any visit while you are logged in: you always see and edit the live, dynamic site. |
These are skipped in the Last regeneration journal with their reason. A skipped page is not an error.
If a page looks wrong
- A form is replaced by a message. The page is in Strict style. Pin it to Hybrid, or accept the message and set the contact address.
- A search box or a comment form disappeared. Same cause: Strict replaces every form. Use Hybrid for that page.
- A product cannot be added to the cart. The add-to-cart button is a form. Use Hybrid for products.
- A page must never become static. Set it to Always dynamic.
- You are not sure. Use Preview, then check the page in a private window after saving.
More help is on the Troubleshooting page.