• Resolved carlosvai

    (@carlosvai)


    Hi! I’m having a bit of a struggle debugging an issue for quite a while now.

    This time around is only happening in one page (that I’m aware of anyway) but it had happened in other ones.

    The issue is the infamous Refused to execute script from 'https://example.com/?ver=3d34d' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

    Which (as I understand it) incorrectly reads the css file as an html… or something like that?

    if I wait 5 minutes and refresh, it works fine, but immediately refresh and the style disappears.

    When I add the /?LSCWP_CTRL=before_optm at the end of the url, it displays correctly. So I go and deactivate every setting in the “page optimization” section, purge all (cloudflare too, even if its set as dynamic) remove the added line… and the page looks bad again.

    I’m really clueless. Any help will be greatly appreciated!

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

Viewing 4 replies - 16 through 19 (of 19 total)
  • Thread Starter carlosvai

    (@carlosvai)

    @serpentdriver does /?LSCWP_CTRL=before_optm bypass the entire plug in?
    It clearly does not bypass the optimization section only, because like I said, if I turn every setting OFF, the problem persists.

    Sorry to insist on that same question over and over… but is my only hope to fix this issue.
    Thanks.

    LSCWP_CTRL=before_optm doesn’t do anything at register url, because it redirects to homepage if any GET parameter is used at register URL.

    Excluding register URL from being cached works, but only once. At next reload of this URL it is cached again. Only for testing, could you disable Cloudflare?

    Thread Starter carlosvai

    (@carlosvai)

    I see!
    I really appreciate your time and help 😃

    To be honest I’m scared of turning cloudflare OFF altogether, you mean “development mode” or “pause cloudflare on site”?

    Like I said I don’t want to take more of your time, so I will document this last thing I did.
    The problem seems to be with the url… as crazy as it sounds. If I rename it to “register-users” (with a final s) it works flawlessly.

    If I make a blank page, no cache, no shortcode, no nothing… but make the permalink “register-user” it calls that broken page everythime even when the headers say it is a new page.

    So… I found this workaround for now… hopefully this won’t happen again in this or other pages.

    Thank again for your valuable time and guidance!

    Thread Starter carlosvai

    (@carlosvai)

    Just in case this happens to anyone (or me in the future) the root of my problem was that I had enabled the “serve stale” option under “purge” in the Cache section.

    That option simply serves the last cached js or css no matter what you do.
    Disable it, purge, and you are good to go!

Viewing 4 replies - 16 through 19 (of 19 total)
  • The topic ‘Refused to apply style because its MIME type is not a supported MIME type strict’ is closed to new replies.