Html Appcache不工作:清单获取失败(404)

Html Appcache不工作:清单获取失败(404),html,caching,web,offline-caching,Html,Caching,Web,Offline Caching,我的网站的appcache和清单文件有问题 demo.appcache文件: CACHE MANIFEST /img/logoSmallSmall.png /crosshair.html <!DOCTYPE html> <html manifest="demo.appcache"> <head> <title>crosshairs</title> </head> <body> <h

我的网站的appcache和清单文件有问题

demo.appcache文件:

CACHE MANIFEST
/img/logoSmallSmall.png
/crosshair.html
    <!DOCTYPE html>
<html manifest="demo.appcache">
<head>
    <title>crosshairs</title>
</head>
<body>
    <h1>katse</h1>
        <img src="img/logoSmallSmall.png" alt="image text" onclick="javascript:alert('Your popup message');" /> 
        <div style="display: none;">sdsd</div>
        <img src="img/logoSmallSmall.png" alt="image text" onclick="javascript:alert('Your popup message2');" /> 
        <div style="display: none;">sdsd</div>
        <img src="img/logoSmallSmall.png" alt="image text" onclick="javascript:alert('Your popup message3');" /> 
        <div style="display: none;">sdsd</div>
</body>
</html>
AddType text/cache-manifest .appcache
我试图缓存的HTML:

CACHE MANIFEST
/img/logoSmallSmall.png
/crosshair.html
    <!DOCTYPE html>
<html manifest="demo.appcache">
<head>
    <title>crosshairs</title>
</head>
<body>
    <h1>katse</h1>
        <img src="img/logoSmallSmall.png" alt="image text" onclick="javascript:alert('Your popup message');" /> 
        <div style="display: none;">sdsd</div>
        <img src="img/logoSmallSmall.png" alt="image text" onclick="javascript:alert('Your popup message2');" /> 
        <div style="display: none;">sdsd</div>
        <img src="img/logoSmallSmall.png" alt="image text" onclick="javascript:alert('Your popup message3');" /> 
        <div style="display: none;">sdsd</div>
</body>
</html>
AddType text/cache-manifest .appcache
Chrome上的Javascript控制台给了我这样的错误:

Application Cache Error event: Manifest fetch failed (404)

有人能帮我修一下吗?

发现整个问题都是因为文件名。
您所要做的就是将文件命名为cache.manifest,这就是您所要做的

您的目录结构是什么样子的?.appcache文件位于何处?.appcache与我的HTML文件位于同一目录中。如果直接点击清单url,它是否加载“”?还有,你试过这个工具吗?我刚从一个朋友那里得到帮助,我发现我的问题是我的网站没有找到demo.appcache文件。要修复它,我必须执行以下操作:可以通过在VS中右键单击c.appcache并对文件“content”执行构建操作来修复此问题。但我不知道如何使用VisualStudio来实现这一点。我还需要在我的azure虚拟机中添加come to web.config文件,但我在任何地方都找不到该配置文件。我想知道这到底是为什么解决了这个问题,我猜这与IIS的mime类型设置等有关。。。。但我无法确定确切的设置。