eldiablock
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] JS file content typeHello,
I have tested disabling wp fastest cache, and the issue was gone.
Then I enabled it again. With both wpfc + server side cache, I have modified the plugin code, replacing
header('Content-type: text/js');by
header('Content-type: text/javascript');You can see the result on the same page mentionned previously.
And the issue is gone.
I truly believe you should modify the code as well in the same way. The expected content type for JS files is “text/javascript” and not “text/js”.
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] JS file content typeOh, I see, on some page refresh it’s the recent cache, on some others it’s an old one…
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] JS file content typeStrange, I have just reset the cache again, I have this :
<!-- WP Fastest Cache file was created in 0.683 seconds, on 10 June 2026 @ 12h20 -->And before the last refresh it was today as well.
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] JS file content typeDone, but the issue is still here.
Sometimes with multiple refreshes, the issue is gone but it pops again regularly.
Chrome says:
Refused to execute script from 'https://patrimoine.sncf.com/wp-content/cache/wpfc-minified/2dbmf380/b031.js' because its MIME type ('text/js') is not executable, and strict MIME type checking is enabled.Safari says:
Refused to execute https://patrimoine.sncf.com/wp-content/cache/wpfc-minified/2dbmf380/b031.js as script because "X-Content-Type-Options: nosniff" was given and its Content-Type is not a script MIME type.Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] JS file content typeTry here https://patrimoine.sncf.com/jep-en-regions/ with Chrome
Forum: Plugins
In reply to: [WP Fastest Cache - WordPress Cache Plugin] JS file content typeHello, I do have this one this morning :
Refused to execute script from 'https://patrimoine.sncf.com/wp-content/cache/wpfc-minified/2dbmf380/i1pcd.js' because its MIME type ('text/js') is not executable, and strict MIME type checking is enabled.The file content seems fine though