one site https and one http, https is not compressed
if the files are not compressed, then the webserver ignores the .htaccess that AO writes to wp-content/cache/autoptimize/.htaccess. fix server config OR disable “save as static files” to fix/ workaround.
hope this clarifies,
frank
fix server config, show my how with cpanel 64.0.33
That I don’t know @nguyendam, I don’t use cpanel myself, maybe ask your hoster? 🙂
Thank you, you can show me what is different when enable “save as static files” or not
well, if “save as static files” is active, the CSS and JS files are saved to the cache and are served entirely through your webserver. It is your webserver that is responsible to compress the files while transported.
if “save as static files” is not active, the CSS and JS files are saved to cache as well, but are served by PHP-code, which does the compression on-the-fly.
hope this clarifies,
frank
So “save as static files” is better if webserver compress the files?
yes, that is the better solution.
Thank you so much! I will call to hosting service to solve.
I just checked, root cause is not webserver.
I test on https://gtmetrix.com/reports/nhathoconggiao.com/IW3sbB6k
One CSS file was not compress and one file was compressed.
Root cause is Visual Compressor plugin.
Check on Page not build with VC is normal.
Can you send me some advice to solve it?
I have absolutely no idea there @nguyendam, don’t know Visual Composer at all. Maybe ask in the support forums of that plugin?