• Currently, I experience 404 errors when setting Minify to manual.

    I have read over the current setting…
    How to Use Manual Minify for CSS and JS | BoldGrid

    Is the following the correct folder & file structure? As this isn’t what I currently see…

    When I review the folder file structure it’s currently the following:

    /wp-content/cache/minify/d2e6d/default.include.css.id

    The minify folder also has an index.html which is empty

    The following is embedded in the head

    <link rel=”stylesheet” href=”/wp-content/cache/minify/d2e6d.default.include.b15413.css” media=”all”>

    This path is currently displaying an error 404 as it’s missing.

    Minify Settings:
    General
    Rewrite URL structure = on
    HTML & XML = none
    JS minify engine setting = enable
    Operation in areas = Before </head> Minify After <body> Minify before? </body>
    ?Preserved comment removal (not applied when combine only is active) = on
    JD management = Theme = Selected
    No JS file has been selected
    HTTP/2 push = on

    CSS minify setting = enable
    Minify method – Minify only
    Preserved comment removal (not applied when combine only is active) = on
    @import handing = none
    CSS file management = Theme = Selected
    Only selected CSS files have been added
    HTTP/2 push = on

    Is there anything that I have missed?

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @folio1

    Thank you for reaching out and I am happy to help!

    I can see that the files is loading from two different paths

    /wpblob7acedbbe85/wp-content/cache/minify/d2e6d.default.include.3a3807.css

    and

    /wp-content/cache/minify/d2e6d.default.include.3a3807.css

    I’ve checked the console and the error is suggesting that this file/s are not a supported stylesheet MIME type, and strict MIME checking is enabled.

    I am not sure what /wpblob7acedbbe85/ is and there is a mix of absolute and relative paths.

    This may be the problem as the file is not loading from the correct path.
    You can try enabling the option ”?Fix document root path” in Performance>General settings>Miscellaneous, save all settings and purge the cache and see if that helps!
    Also, please let me know if you are experiencing the same issue with Auto Minify.

    Thanks!

    Thread Starter Paul Johnstone

    (@folio1)

    Hi Marko,

    Thanks for your feedback....

    When the minified CSS file is generated what folder is the file placed in by default?
    And what is the file path so I can confirm the file is in the right location. As I can’t see the file within the current path… /wp-content/cache/minify/d2e6d/default.include.css.id What is this file default.include.css.id ?
    Note this is the local disk path
    /wp-content/cache/minify/d2e6d.default.include.3a3807.css The following is the CDN storage path, this should not be displayed as it’s been turned off within settings. General – Host minified CSS and JS files will be hosted with the CDN = off /wpblob7acedbbe85/wp-content/cache/minify/d2e6d.default.include.3a3807.css I'm not concerned about the current message as I can’t locate the file eg status code 404. MIME-type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. No, I’m not using auto at current, as I do not want all of the CSS & JS to be minified.
    Turning on - Fix document root path did not fix the problem. Please note that I’m currently using the free version.
    Thread Starter Paul Johnstone

    (@folio1)

    When the Rewrite URL structure is turned on the following message is displayed with WP admin

    W3 Total Cache error: It appears Minify?URL?rewriting is not working. Please verify that all configuration files are included in the configuration file (and that you have reloaded / restarted nginx).
    Unfortunately minification will not function without custom rewrite rules. Please ask your server administrator for assistance. Also refer to?the install page?for the rules for your server.
    Technical info Do you have any solution or workaround for this?

    Note, Minify mode is set to Auto.

    Note, when Rewrite URL structure is turned off, the above message is not displayed and the site will render.

    However any embedded background images will not display due to the image path, see below.

    https://as05wp-1850111097-gwhba4aeg3gjc4h2.z01.azurefd.net/?w3tc_minify=9223b.css

    /* 434  */           background: #d7e3f4 url(images/bg-main.jpg) repeat-y 50% 0;

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @folio1

    Thank you for your feedback.

    Have you checked the install page and made sure that all the rules on that page (according to your settings) are the same on the .htaccess files?
    Thanks!

    Thread Starter Paul Johnstone

    (@folio1)

    Yes, and reviewed the Rewrite Rules (based on active settings)
    Note, the current WordPress runs on App Service for Linux, with nginx as the web server.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘404 errors when setting Minify to manual’ is closed to new replies.