Hello @andrea-baccolini
Sorry for the late reply.
This is very strange indeed. I tried to replicate this by checking the Performance>CDN, however, with CDN enabled or disabled I was not able to reproduce the problem.
If you are still experiencing the problem can you please completely remove and re-install W3TC?
1. Purge Cache
2. Deactivate and Delete Plugin
3. Check .htaccess File (make backup)
W3TC will create many directives in .htaccess file to control the caching behavior. Each section will start and end with comments like "#BEGIN W3TC Page Cache core" and "#END W3TC Page Cache core".
Ensure that no residual entries are left over in your .htaccess file after deleting the plugin.
4. Delete wp-content files and folders
- cache folder
- w3tc-config folder
- object-cache.php (if exists)
- advanced-cache.php (if exists)
- db.php (if exists)
- upgrade folder
- delete w3-total-cache folder in wp-content/plugins/ (if exists)
5. Delete Cached Files from CDN (if using CDN)
Besides deleting all the relevant files, if you use CDN then ensure to purge the cached content from your CDN. This is necessary when you enabled minify option in W3TC settings. You should delete the minified and combined scripts and CSS files from your CDN server to avoid the site breaking on the browser.
6. Go to your wp dashboard and re-install W3 Total Cache