Title: MIME type error
Last modified: May 10, 2018

---

# MIME type error

 *  Resolved [louiscuvelier](https://wordpress.org/support/users/louiscuvelier/)
 * (@louiscuvelier)
 * [8 years ago](https://wordpress.org/support/topic/mime-type-error-2/)
 * Hi,
 * I think (not sure) I have a problem with SuperPWA.
 * On my website in the wp-admin part, I have this type of error :
 * `Refused to apply style from '...' because its MIME type ('text/html') is not
   a supported stylesheet MIME type, and strict MIME checking is enabled.`
 * `Refused to execute script from '...' because its MIME type ('text/html') is 
   not executable, and strict MIME type checking is enabled.`
 * I arrived at the conclusion that was SuperPWA involved because when I made a «
   Force update » (on Chrome : CTRL + MAJ + R), there is no error. But, once SuperPWA
   is active and I reload the page normally, the errors showed up.
 * Can you help please ?
 * Best regards,
    Louis Cuvelier.

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

 *  [Arun Basil Lal](https://wordpress.org/support/users/arunbasillal/)
 * (@arunbasillal)
 * [8 years ago](https://wordpress.org/support/topic/mime-type-error-2/#post-10266947)
 * Hello Louis,
 * SuperPWA doesn’t do anything on the WordPress admin and is excluded as you can
   see here: [https://github.com/SuperPWA/Super-Progressive-Web-Apps/blob/10cd1b7dcf675a8f63a169a6bcb5d29a8c82a31a/public/sw.php#L108](https://github.com/SuperPWA/Super-Progressive-Web-Apps/blob/10cd1b7dcf675a8f63a169a6bcb5d29a8c82a31a/public/sw.php#L108)
 * A confirmatory test would be to deactivate SuperPWA temporarily and also to remove
   the service worker installed on your browser.
 * You can do this by going to Chrome Dev tools > Application tab > Service workers
   > Unregister > Close tab and reopen or restart browser and see if the error persists.
   Please note that its very important to restart the tab.
 * Please let me know how it goes. Best regards.
 *  Thread Starter [louiscuvelier](https://wordpress.org/support/users/louiscuvelier/)
 * (@louiscuvelier)
 * [8 years ago](https://wordpress.org/support/topic/mime-type-error-2/#post-10270703)
 * Hello Arun,
 * I’m sorry to tell you that when I disable SuperPWA and I clean the SW, It works
   without any error. 😕
 * Best regards
    -  This reply was modified 8 years ago by [louiscuvelier](https://wordpress.org/support/users/louiscuvelier/).
    -  This reply was modified 8 years ago by [louiscuvelier](https://wordpress.org/support/users/louiscuvelier/).
 *  [Arun Basil Lal](https://wordpress.org/support/users/arunbasillal/)
 * (@arunbasillal)
 * [8 years ago](https://wordpress.org/support/topic/mime-type-error-2/#post-10272739)
 * I see, I am wondering why.
 * How can I replicate this error at my end? What plugins should I use and what 
   should I do?
 * The browser is latest Chrome I believe.
 *  Thread Starter [louiscuvelier](https://wordpress.org/support/users/louiscuvelier/)
 * (@louiscuvelier)
 * [8 years ago](https://wordpress.org/support/topic/mime-type-error-2/#post-10273278)
 * I’m on Chrome version 66.0.3359.170.
 * The error is especially annoying when I want to edit a page/post because It put
   in error the two plugins that I use ThirstyAffiliates ([https://wordpress.org/plugins/thirstyaffiliates/](https://wordpress.org/plugins/thirstyaffiliates/))
   and Ad Inserter ([https://wordpress.org/plugins/ad-inserter/](https://wordpress.org/plugins/ad-inserter/)).
 * I’m also using Autoptimize ([https://wordpress.org/plugins/autoptimize/](https://wordpress.org/plugins/autoptimize/))
   and CloudFlare.
    -  This reply was modified 8 years ago by [louiscuvelier](https://wordpress.org/support/users/louiscuvelier/).
 *  [Arun Basil Lal](https://wordpress.org/support/users/arunbasillal/)
 * (@arunbasillal)
 * [8 years ago](https://wordpress.org/support/topic/mime-type-error-2/#post-10301619)
 * Hey Louis,
 * Sorry I didn’t get a chance to get back to this before.
 * I noticed this post: [https://wordpress.org/support/topic/refused-to-execute-script-because-its-mime-type-is-not-executable-2/#post-10263396](https://wordpress.org/support/topic/refused-to-execute-script-because-its-mime-type-is-not-executable-2/#post-10263396)
 * Does that mean now it’s all good? Please let me know.
 *  Thread Starter [louiscuvelier](https://wordpress.org/support/users/louiscuvelier/)
 * (@louiscuvelier)
 * [8 years ago](https://wordpress.org/support/topic/mime-type-error-2/#post-10304220)
 * Hey Arun,
 * Actually no.
    I thought It was fixed, but in fact no because the problem come
   from SuperPWA.
 *  [Arun Basil Lal](https://wordpress.org/support/users/arunbasillal/)
 * (@arunbasillal)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/mime-type-error-2/#post-10316109)
 * I am unfamiliar with this error and based on reading about it online I think 
   its because the content-type of the file is text/html when it should be application/
   javascript.
 * Since SuperPWA does not mess with the content-type, I am not sure what is happening
   here.
 * Disabling Cloudflare temporarily didn’t help? Is the rocket loader enabled?
 *  Thread Starter [louiscuvelier](https://wordpress.org/support/users/louiscuvelier/)
 * (@louiscuvelier)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/mime-type-error-2/#post-10317528)
 * I tried with Rocket Loader Off and CloudFlare disabled.
    Nothing change, I’ve
   got the same problem …

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

The topic ‘MIME type error’ is closed to new replies.

 * ![](https://ps.w.org/super-progressive-web-apps/assets/icon-128x128.png?rev=1842063)
 * [Super Progressive Web Apps](https://wordpress.org/plugins/super-progressive-web-apps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/super-progressive-web-apps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/super-progressive-web-apps/)
 * [Active Topics](https://wordpress.org/support/plugin/super-progressive-web-apps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/super-progressive-web-apps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/super-progressive-web-apps/reviews/)

## Tags

 * [mime-type](https://wordpress.org/support/topic-tag/mime-type/)

 * 8 replies
 * 2 participants
 * Last reply from: [louiscuvelier](https://wordpress.org/support/users/louiscuvelier/)
 * Last activity: [7 years, 12 months ago](https://wordpress.org/support/topic/mime-type-error-2/#post-10317528)
 * Status: resolved