0
我已經在C#MVC中構建應用程序,並且我正在使用HTML5應用程序緩存清單來運行應用程序,即使Internet不可用。我的代碼如下。應用程序緩存錯誤事件:無法解析C#中的清單MVC
控制器(主頁):
public ActionResult Manifest()
{
Response.ContentType = "text/cache-manifest";
return View();
}
視圖(Manifest.cshtml)
CACHE MANIFEST
NETWORK:
*
CACHE:
~/Scripts/stylesheets/bootstrap.min.css
FALLBACK:
@{
Layout = null;
}
Layout.cshtml
<html manifest="/Home/Manifest">
但是我得到錯誤:應用緩存錯誤事件:解析清單失敗
我需要在緩存文件中包含view.cshtml文件路徑嗎?
我已經嘗試了一些解決方案發布在前面的stackoverflow,但沒有找到任何解決方案。