SG Optimizer Generated CSS Files Breaking Site
-
Good Day!
We are only using the Combine CSS Files and Preload Combined CSS features of your plugin’s Front Optimization tab.
For some odd reason, every two or three days, the CSS styling of our website breaks. The console error that we’re getting on every page that is broken displays the following:

Screenshot: https://ibb.co/BrVk4KC
Helpful Information:
(1) We checked online as to what could be causing the above. The closest thing we found is the information contained in this Stackoverflow post which contains this comment:
It happens when you set an incorrect URL to the file or when your server isn’t configured properly. In the result, the browser DOESN’T get the stylesheet, but it gets some HTML with 404 status and with the “Content-Type” header. Since the browser gets something from the server, it doesn’t tell you there is no reply, but it tells you the MIME type of the file is incorrect. The fastest way to check it is just to try to open the file directly http://localhost:3000/assets/styles/custom-style.css
(2) When we click the URL provided in the console error, we get a 404 message (page not found).
(3) When we clear Cloudflare’s cache, issue remains.
(4) When we clear SiteGround’s Dynamic and Memcached, issue remains.
(5) When we clear our theme’s (Avada) cache (called, “Reset Avada Caches”), followed by clearing SG Optimizer’s Dynamic and Memcached and then Cloudflare’s cache, issue is temporarily fixed.
Please review and provide a fix.
Thank you!
The topic ‘SG Optimizer Generated CSS Files Breaking Site’ is closed to new replies.