Conflict between cornerstone & W3 Total Cache

I am having a problem with a conflict between cornerstone & W3 Total Cache.

I use w3 total cache to speed up my site, but when I is active cornerstone never loads the preview. If I disable w3 total cache, the preview works fine, but the rest of my site is slow.

Is there some way to avoid the comflict?

Hi There,

Thank you for writing in, please excluded that files below from being minified by the W3 Total Cache, those files are already minified so there is no need for minifying it again.

wp-content/plugins/cornerstone/assets/dist-app/js/cs-vendor.js
wp-content/plugins/cornerstone/assets/dist-app/js/cs.js
wp-content/plugins/cornerstone/assets/dist/js/admin/huebert.js

Please clear the entire W3 Total Cache and the browser’s cache on your end after.

Let us know how it goes,
Cheers!

I’m also having this issue. I added the code above to the “Never minify the following JS files” box, saved/purge caches, and even refreshed a couple of times, but the page preview isn’t loading in Pro unless I deactivate the plugin.

Hi There,

For PRO, please exclude this files instead.

wp-content/themes/pro/cornerstone/assets/dist-app/js/cs-vendor.js
wp-content/themes/pro/cornerstone/assets/dist-app/js/cs.js
wp-content/themes/pro/cornerstone/assets/dist/js/site/cs-head.js
wp-content/themes/pro/cornerstone/assets/dist/js/site/cs-body.js
wp-content/themes/pro/cornerstone/assets/dist/js/admin/huebert.js
wp-content/themes/pro/framework/dist/js/site/x.js

Those files are already minified so there is no need for minifying it again.

Exclude Pages and Directories from Caching in W3 Total Cache

For sites that are under CloudFlare, they can follow this guide here.

Remember to clear all caches (plugins, server-side, CDN, and browser’s cache) this will help you to avoid any potential errors.

Hope it helps,
Cheers!

1 Like

Works like a charm - thank you!

We are delighted to assist you with this.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.