• Resolved Kyrian

    (@oloccina)


    Hi,
    yesterday I got this error in console for some time

    Refused to execute script from ‘https://mysite.com/wp-content/litespeed/js/ccffbad9c96768d716f6a20a73182ec7.js?ver=07bc5’ because its MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

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

    The site layout was broken.
    Today I was ready to debug, but the error was gone and everything was working fine again.

    What could be the cause of a temporary error like this?
    I guess that should be the minified JS file?
    I did not change settings since the error, but I did flush the cache a bunch of time.

    Just want to be sure to not have it once this site become live.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Whenever a URL cannot be requested because the requested URL cannot be found WordPress displays a “Cannot find page”. The MiME of this page (HTML) is different than the requested MIME Type for CSS and that’s why the browser says MIME type (‘text/html’) is not executable, and strict MIME type checking is enabled.

    Regardless, do a purge CSS/JS if this issue happens again.

    Thread Starter Kyrian

    (@oloccina)

    Thanks. Yes I did purge all the caches a number of times, but the error persisted for some hours. Odd.

    The kind of purging matters.

    Thread Starter Kyrian

    (@oloccina)

    I usually use the “Purge ALL” link, just to be sure.
    Then I also purge Cloudfare, Object Cache (maybe these are already included in Purge ALL, not sure), and finally I purge my browser cache.

    But this time it did not seem to do the trick.

    Purge all doesn’t purge minified/combined CSS/JS entries in the database, but normally a purge all does what it says and there is (almost) no trick with purging. 😉

    Plugin Support qtwrk

    (@qtwrk)

    please provide the report number

    you can get it in toolbox -> report -> click “send to LiteSpeed”

    Thread Starter Kyrian

    (@oloccina)

    Report number: JCRGAHNE

    please note I do not have the issue described in this ticket anymore, thanks

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

The topic ‘Refused to execute script – Failed to load resource’ is closed to new replies.