我无法理解为什么我得到404:即使Powered by AMP ⚡ HTML – Version 1456440290687
也是错误。
<!doctype html>
<html amp lang="en">
<head>
<meta charset="utf-8">
<title>Hello, AMPs</title>
<link rel="canonical" href="http://www.mmdroid.biz/myjobs/index.html" />
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"headline": "Open-source framework for publishing content",
"datePublished": "2015-10-07T12:02:41Z",
"image": [
"imgs/logo.jpg"
]
}
</script>
<style amp-custom>
/* any custom style goes here */
body {
background-color: white;
}
amp-img {
background-color: gray;
border: 1px solid black;
}
</style>
<script async src="https://cdn.ampproject.org/v0.js"></script>
答案 0 :(得分:1)
AMP缓存仅包含有效的AMP页面。由于许多在线样式,您的页面无效AMP,因此它不在缓存中,因此尝试通过缓存访问会产生404.访问以下站点,控制台打开以在开发模式下运行并显示您需要修复的错误:< / p>
访问:http://www.mmdroid.biz/myjobs/index.html#development=1
您还需要有效的NewsArticle结构化日期(包括图片):