gpt4 book ai didi

javascript - 资源的扩展名与其实际内容不一致?

转载 作者:太空宇宙 更新时间:2023-11-03 23:15:45 25 4
gpt4 key购买 nike

我在使用 Dareboost (SEO) 时遇到了这个错误,我找不到任何解决方案,所以我想我会试一试。

Resource has a non-consistent extension with its actual content.

The extension of a resource allows to identify easily its content type. You have no reason to indicate a different extension of the actual content type of the resource.

For instance, the file resource.js must use a Content-Type HTTP header equals to application/javascript. You can check the Content-Type HTTP header value using a debug tool like Firebug.

This page contains one resource uses an extension that is not consistent with its 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)

相关代码:

    <!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>

抱歉,如果这听起来像是一个愚蠢的问题。

最佳答案

Github 声称您的样式表是用纯文本(即不是 CSS)编写的。

不要使用 raw.githubusercontent.com 作为托管服务提供商。这不是 Github 的意图,它也不适合这项工作。

关于javascript - 资源的扩展名与其实际内容不一致?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30640718/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com