• I am using Autoptimize Plugin for the past couple of months. But, Combining CSS, Javascript, and HTML minify was not working. Then I removed the plugin for some reason and then reinstalled it yesterday. To my surprise, HTML minify was working great. the HTML DOM readable contents line reduced from 3000 to just 31.

    But, Combined CSS is not working yet. I tried enabling “Optimize CSS Code” on Autoptimize plugin but nothing is working. What to do now? How to fix this error.

    https://www.tecrobust.com

    • This topic was modified 6 years, 8 months ago by Ranger.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    probably a plugin conflict, afraid you’ll have to disable (and re-enable) other plugins one by one to find out which. could also be theme, so briefly switching to twenty-something might also be needed.

    frank

    Thread Starter Ranger

    (@ranger33)

    I will explain the error in detail. The CSS files and javascript files are combining but the combined CSS and java file paths throw 404 error when it loads(
    we found it from the Inspect element, network tab). Also, the combined CSS and javascript files are not having .css and .js extensions respectively rather they have .php.

    When we try to access these combined css files and java file URLs manually, they are just throwing up 404 errors and it collapses the site.

    We checked up the Nginx log files, and we found that this combined css and javascript file paths are just throwing up 404 error.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    re-enable the “serve as static file”-option and try again maybe?

    Thread Starter Ranger

    (@ranger33)

    So the option “Save aggregated script/CSS as static files?” will aggregate all CSS and js files and load statics files without a 404 error? Is it safe to do?

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    So the option “Save aggregated script/CSS as static files?” will aggregate all CSS and js files

    yes

    and load statics files

    yes

    without a 404 error?

    very likely 🙂

    Is it safe to do?

    “static” is on by default, so yes, it is very safe to do 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘CSS combining is not working’ is closed to new replies.