JS Excludes dont work properly




Wordpress LScache Plugin: JS Excludes dont work properly

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hi, I am using Jetpacks map block which used two JS files: 1) jetpack/_inc/blocks/vendorsmap/mapbox-gl.a137d65f1b9ca8f91c8e.js 2) jetpack/_inc/blocks/map/view.js I had to exclude these files from JS combination + minification since it caused that the map wasnt displayed anymore. However, only file number two can be excluded. File one seems to be ignored. Its still being minified and combined with other JS files. Is it because of the special characters or dot prior to ID.js ? Thanks for a hint how I can exclude this file. Greets Hi, Could you please enable debug log to your IP and then access the page , see if these filenames hit the excluding ? And what happens if you use jetpack and/or blocks as keyword in excluding ? Best regards, Thanks for your answer. This also doesnt work. I excluded the following lines under JS Excludes and have the following options enabled: jetpack/_inc/blocks/vendorsmap/mapbox-gl.a137d65f1b9ca8f91c8e.js mapbox-gl.a137d65f1b9ca8f91c8e.js jetpack/_inc/blocks/map/view.js jetpack jetpack/_inc/blocks Options: [x] JS Minify [x] JS Combine [x] JS HTTP/2 Push 08/19/19 22:42:35.354 [172.68.51.151:63358 1 z00] ------GET HTTP/1.1 (HTTPS) ##URL ANONYMIZED## 08/19/19 22:42:35.354 [172.68.51.151:63358 1 z00] Query String: 08/19/19 22:42:35.354 [172.68.51.151:63358 1 z00] HTTP_REFERER: ##URL ANONYMIZED## 08/19/19 22:42:35.354 [172.68.51.151:63358 1 z00] Cookie _lscache_vary: admin_bar:1 logged-in:1 role:99 08/19/19 22:42:35.458 [172.68.51.151:63358 1 z00] [Ctrl] X Cache_control -> private ( logged in user ) 08/19/19 22:42:35.476 [172.68.51.151:63358 1 z00] [Router] get_uid: 1 08/19/19 22:42:35.476 [172.68.51.151:63358 1 z00] [Router] get_role: administrator 08/19/19 22:42:35.477 [172.68.51.151:63358 1 z00] GUI init 08/19/19 22:42:35.486 [172.68.51.151:63358 1 z00] [Ctrl] X Cache_control init on 08/19/19 22:42:35.828 [172.68.51.151:63358 1 z00] [Core] Footer hook called 08/19/19 22:42:35.831 [172.68.51.151:63358 1 z00] [Core] Footer check passed 08/19/19 22:42:35.831 [172.68.51.151:63358 1 z00] X-LiteSpeed-Cache-Control: private,max-age=1800 08/19/19 22:42:35.831 [172.68.51.151:63358 1 z00] X-LiteSpeed-Tag: 2cc_tag_priv,public:2cc_page,public:2cc_URL.880696c731e442c91dd9d67ed9afd1ff,public:2cc_Po.152,public:2cc_PGS,public:2cc_ 08/19/19 22:42:35.933 [172.68.51.151:63358 1 z00] [Core] Footer check passed 08/19/19 22:42:35.933 [172.68.51.151:63358 1 z00] [Media] finalize 08/19/19 22:42:35.933 [172.68.51.151:63358 1 z00] [Optm] start 08/19/19 22:42:36.169 [172.68.51.151:63358 1 z00] [Optmer] minify_js bypass due to type: application/ld+json 08/19/19 22:42:36.170 [172.68.51.151:63358 1 z00] [Optmer] minify_js bypass due to type: application/ld+json 08/19/19 22:42:36.199 [172.68.51.151:63358 1 z00] End response -------------------------------------------------------------------------------- Expand The fill is still included in the minified version and the page crashes Hi, That is bit of weird. Please submit a ticket here, we will investigate further. Best regards, Hi, Since the map display issue is solved in ticket , I will also post the solution here: Fixed by excluding: /wp-includes/js/dist/vendor/react.min.js /wp-includes/js/dist/components.min.js /wp-includes/js/dist/compose.min.js /wp-includes/js/dist/vendor/lodash.min.js /wp-includes/js/dist/vendor/react-dom.min.js Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference