我在我的應用程序中添加了「cache.manifest」(此功能完美),從那以後,調試非常困難,因爲我必須始終清除緩存或修改cache.manifest版。僅在生產模式下應用緩存清單
我tryied加載清單與 「HttpContext.Current.IsDebuggingEnabled」 條件:
<!DOCTYPE HTML>
@if (HttpContext.Current.IsDebuggingEnabled)
{
<html>
}
else
{
<html manifest="/cache.manifest">
}
這不作品和Visual Studio給了我3個錯誤:
- 塊丟失關閉}字符
- html元素未關閉
- 不能超過1 html元素。
有沒有人有想法?
謝謝!
謝謝!這個解決方案正在工作,我通過使用HttpContext.Current.IsDebuggingEnabled來調整它,使其更清潔。 – wizmagister 2012-05-03 20:12:07