Title: HTML minification doesn&#8217;t work
Last modified: February 4, 2026

---

# HTML minification doesn’t work

 *  Resolved [rrrFer](https://wordpress.org/support/users/rrrfer/)
 * (@rrrfer)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/html-minification-doesnt-work/)
 * HTML processing enabled, cache is enabled too.
 * in my hosting i see files in “wp-content/cache/wpo-cache/<host/path>”
 * but this files not minified.
 * And in browser i see not minified files too. Try to see it in safe mode.
 * Why HTML is not minified?
 * My plugin settings:
 * `{ "epoch_date": 1770187896945, "local_date": "04.02.2026, 13:51:36", "network_site_url":"
   https://pro-prof.com", "data": { "cache_settings": { "enable_page_caching": 1,"
   auto_preload_purged_contents": 1, "enable_mobile_caching": 1, "enable_user_caching":
   0, "page_cache_length_value": "1", "page_cache_length_unit": "months", "enable_schedule_preload":
   1, "preload_schedule_type": "wpo_use_cache_lifespan", "cache_exception_urls":["/
   page/*", "/wp-admin/*", "/wp-includes/*", "/y_search/*", "/forums/search/*", "/
   forums/reply/*", "/forums/topic-tag/*", "/forums/tag/*", "/forums/forum/*", "/
   forums/view/no-replies/*", "", "/archives/category/*", "/archives/tag/*" ], "
   cache_ignore_query_variables": [ "" ], "cache_exception_cookies": [ "" ], "cache_exception_conditional_tags":["
   is_front_page", "is_category", "is_tag", "is_tax", "is_author", "is_search", "
   is_attachment", "is_preview", "" ], "cache_exception_browser_agents": [ "" ] },"
   minify_settings": { "enabled": "true", "html_minification": "true", "enable_js":"
   true", "enable_css": "true", "enable_js_minification": "true", "enable_merging_of_js":"
   true", "exclude_js": "/wp-content/plugins/enlighter/*\r\n*moe.video/*", "enable_defer_js":"
   individual", "async_js": "", "defer_js_type": "defer", "defer_jquery": "true","
   exclude_delay_js": "", "enable_js_trycatch": "false", "exclude_js_from_page_speed_tools":"
   false", "enable_delay_js": "false", "enable_preload_js": "false", "enable_css_minification":"
   true", "enable_merging_of_css": "true", "exclude_css": "", "async_css": "", "
   enable_unused_css": "false", "inline_css": "false", "remove_print_mediatypes":"
   false", "exclude_css_from_page_speed_tools": "false", "enable_display_swap": "
   true", "gfonts_method": "inline", "fawesome_method": "inherit", "disable_google_fonts_processing":"
   false", "remove_googlefonts": "false", "enable_analytics": "false", "merge_inline_extra_css_js":"
   true", "clean_header_one": "true", "emoji_removal": "true", "default_protocol":"
   dynamic", "disable_when_logged_in": "false", "cache_lifespan": "30", "minify_advanced_tab":"
   1", "debug": "false", "edit_default_exclutions": "false" }, "smush_settings":{"
   compression_server": "resmushit", "image_quality": "85", "lossy_compression":
   true, "back_up_original": false, "back_up_delete_after": true, "back_up_delete_after_days":"
   50", "preserve_exif": false, "autosmush": true, "show_smush_metabox": true, "
   webp_conversion": false }, "database_settings": "retention-period=2&revisions-
   retention-count=2&schedule_type=wpo_weekly&wp-optimize-auto%5Brevisions%5D=true&
   wp-optimize-auto%5Bdrafts%5D=true&wp-optimize-auto%5Btrash%5D=true&wp-optimize-
   auto%5Bspams%5D=true&_wpnonce_db_settings=304565f8b8&_wp_http_referer=%2Fwp-admin%
   2Fadmin.php%3Fpage%3Dwpo_support&404_detector=1&enable-admin-bar=true&enable_cache_in_admin_bar
   =1&_wpnonce=304565f8b8&_wp_http_referer=%2Fwp-admin%2Fadmin.php%3Fpage%3Dwpo_support&
   enable-retention=0&enable-revisions-retention=0&enable-auto-backup-scheduled=
   0&enable-schedule=0&wp-optimize-auto[optimize]=0&wp-optimize-auto[unapproved]
   =0&wp-optimize-auto[transient]=0&wp-optimize-auto[usermeta]=0" } }`
 * Cache settings:
 * `{ "enable_page_caching": true, "page_cache_length_value": 1, "page_cache_length_unit":"
   months", "page_cache_length": 2629800, "cache_exception_conditional_tags": [ "
   is_front_page", "is_category", "is_tag", "is_tax", "is_author", "is_search", "
   is_attachment", "is_preview", "" ], "cache_exception_urls": [ "\/page\/*", "\/
   wp-admin\/*", "\/wp-includes\/*", "\/y_search\/*", "\/forums\/search\/*", "\/
   forums\/reply\/*", "\/forums\/topic-tag\/*", "\/forums\/tag\/*", "\/forums\/forum\/*","\/
   forums\/view\/no-replies\/*", "", "\/archives\/category\/*", "\/archives\/tag\/*"],"
   cache_ignore_query_variables": [ "" ], "cache_exception_cookies": [ "" ], "cache_exception_browser_agents":[""],"
   enable_sitemap_preload": false, "enable_schedule_preload": "1", "preload_schedule_type":"
   wpo_use_cache_lifespan", "enable_mobile_caching": "1", "enable_user_caching":"
   0", "site_url": "https:\/\/pro-prof.com\/", "enable_cache_per_country": false,"
   enable_cache_aelia_currency": false, "permalink_structure": "\/archives\/%post_id%","
   uploads": "\/var\/www\/user5483\/data\/www\/pro-prof.com\/wp-content\/uploads","
   gmt_offset": "3", "timezone_string": "", "date_format": "d.m.Y", "time_format":"
   H:i", "use_webp_images": false, "show_avatars": 0, "host_gravatars_locally": 
   0, "auto_preload_purged_contents": "1", "enable_rest_caching": false, "wpo_cache_cookies":[],"
   wpo_cache_query_variables": [] }`
    -  This topic was modified 3 months, 3 weeks ago by [rrrFer](https://wordpress.org/support/users/rrrfer/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtml-minification-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Support [Damilare](https://wordpress.org/support/users/deabiodun/)
 * (@deabiodun)
 * [3 months, 3 weeks ago](https://wordpress.org/support/topic/html-minification-doesnt-work/#post-18811419)
 * Hi [@rrrfer](https://wordpress.org/support/users/rrrfer/)!
   I can confirm that
   HTML is actually minified as shown in the screenshots linked below.[https://ibb.co/xK3P0J9r](https://ibb.co/xK3P0J9r)
   and [https://ibb.co/0RxdJXMY](https://ibb.co/0RxdJXMY)
 * It’ll also help to know that WPO’s HTML minification feature works by removing
   unnecessary characters from your site’s HTML output, applying GZip compression,
   and then caching the page. That is why the feature requires the preload option
   to be enabled, as that is the primary way to ensure proper minification.
 * This process makes your HTML lighter, and its transfer faster when on site visits.
 * Let us know if you have further concerns.
 * Regards.
    -  This reply was modified 3 months, 3 weeks ago by [Damilare](https://wordpress.org/support/users/deabiodun/).

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fhtml-minification-doesnt-work%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)

 * 1 reply
 * 2 participants
 * Last reply from: [Damilare](https://wordpress.org/support/users/deabiodun/)
 * Last activity: [3 months, 3 weeks ago](https://wordpress.org/support/topic/html-minification-doesnt-work/#post-18811419)
 * Status: resolved