I have another question. I enabled page caching with preloading and minification. After I completely clear all caches, page cache preloading starts working and the page_enhanced folder starts filling with cached pages. There’s a problem. However, for some reason, minification doesn’t start working, and the minify folder remains empty. After I load a single page of the site in the browser, the minify folder immediately fills with all the minified pages. It turns out that autofill doesn’t work during minification. Could you please explain why this is happening?
Hello @vadimm5
Thank you for reaching out and I am happy to help!
Yes, by default all js/css files are minified and/or combined. Depending on what you selected in the advanced Minify options.
Can you please share what is selected there?
As for the Preload, this is expected behavior as they are completely separate systems. When you enable the page cache preload only the HTML is created and preloaded and not the assets, this being said, the files are created once the page is visited in the /minify/ folder.
Can you please share if the page is breaking when preloaded?
Thanks!
The page works when preloaded. Minification is simply enabled in the minification settings. You probably misunderstood the question. How can I exclude files containing .min.js and .min.css from minification? For example:
/wp-includes/js/jquery/ui/core.min.js?ver=1.13.3
/easy-fancybox/vendor/jquery.mousewheel.min.js?ver=3.1.13
/plugins/meow-lightbox/app/style.min.css?ver=1773943852
W3 Total Cache re-minifies already compressed .min.js and .min.css files, as the plugin works automatically, processing all files added to the queue in a row without checking their contents.
Hello @vadimm5
Thank you for your patience!
You are correct. In W3TC we skip *.min.js and *.min.css files.
*.min.js and *.min.css are detected as already minified and are combined without being minified again.
This being said I tested the behavior and it needs some updates. I’ll create a ticket for this.
To confirm the regex for excluding those files does not work for you?
Thanks!
The problem has been resolved. The ticket can be closed. Thank you.