javascript - Resource has a non-consistent extension with its actual content? -


i using dareboost (seo) , got error , couldn't find anywhere solution thought i'd give try.

resource has non-consistent extension actual content.

the extension of resource allows identify content type. have no reason indicate different extension of actual content type of resource.

for instance, file resource.js must use content-type http header equals application/javascript. can check content-type http header value using debug tool firebug.

this page contains 1 resource uses extension not consistent content-type http header:

https://raw.githubusercontent.com/semantic-org/semantic-ui/0.9.6/build/packaged/css/semantic.min.css (detected: text/plain; charset=utf-8 | recommended: text/css)

the relevant code:

    <!doctype html> <html lang="en" class="no-js" ng-app="developerblog">   <head>     <link content-type="text/css" data-require="semantic-ui@*" data-semver="0.9.6" rel="stylesheet" href="https://raw.github.com/semantic-org/semantic-ui/0.9.6/build/packaged/css/semantic.min.css" />   </head> 

sorry if sounds stupid question.

as completion quentin said, there services offer raw github files proper content-type.

https://rawgit.com/ 1 of them.

rawgit serves raw files directly github proper content-type headers.

and of course can keep free, or if want stability , things can go paid plans.

i didn't recommend using kind of services, it's choice.

or @ least don't use in production. in dev environment looks reasonable idea.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -