• Resolved partynoparty

    (@partynoparty)


    I just recently started getting the following errors in relation to my autoptimize files:

    Failed to load resource: the server responded with a status of 403 ()

    Refused to apply style from ‘https://emriver.com/wp-content/cache/autoptimize/css/autoptimize_37c952cdd3200b0518a7dfc174ae1bfe.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

    I’ve seen this error in the past when enabling or disabling plugins and it was usually resolved by clearing my cache, via W3 Total Cache. But clearing the cache no longer seems to be working. I thought it might be related to my browser cache, but clearing my browser cache also did not resolve the issue.

    The autoptimize plugin is currently disabled on the site.

    • This topic was modified 4 years, 6 months ago by partynoparty.
    • This topic was modified 4 years, 6 months ago by partynoparty.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    that’s a missing Autoptimized file which is referenced in a page cache somewhere, might be your hoster also has a page cache that needs clearing.

    you can also enable the new “404 fallback” option, which ensures a fallback Autoptimized CSS or JS-file is provided.

    hope this helps,
    frank

    Thread Starter partynoparty

    (@partynoparty)

    That makes sense. We did recently change hosts. I’ll check the host caching policy, and also try out the 404 fallback option. Thanks!

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    you’re welcome, feel free to leave a review of the plugin and support here! ??

    Thread Starter partynoparty

    (@partynoparty)

    Just to follow up, I was able to resolve this issue. Turns out the problem was related to our htaccess file. The following lines were causing an issue and had to be removed:

    # RewriteCond “%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}” -f
    # RewriteRule .* “/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}” [L]

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    really, W3 total cache? did you contact their support to ask what was wrong?

    Thread Starter partynoparty

    (@partynoparty)

    I haven’t yet, but I will follow up with them about it.

    Thread Starter partynoparty

    (@partynoparty)

    I reached out to W3 Total Cache and got this response:

    I’ve spoken with the team and apparently there is a conflict between W3 Total Cache Page Caching and AO cache.
    As I’ve stated above Stylesheets should have a MIME type of text/CSS. Your server is serving up a MIME type (‘text/html’) so the problem is with the CSS file.
    Thank you!

    Not entirely clear what caused the conflict, though.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    the mime type not being text/css is because the autoptimized CSS file could not be found, but how that relates to those lines in .htaccess, that to me is a mystery as well ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Failed to load resource: the server responded with a status of 403 ()’ is closed to new replies.