4
我正在嘗試爲網站設置緩存清單,並且運氣不佳。演示頁是這裏:http://www.matthewlehner.caChrome報告html5緩存清單MIME類型不正確
我使用的HTML具有這樣的結構:
<!DOCTYPE html>
<html manifest="manifest.appcache">
</html>
的.htaccess在根文件夾具有以下條目:從`捲曲
AddType text/cache-manifest appcache
AddType text/cache-manifest .appcache
響應-I http://www.matthewlehner.ca/manifest.appcache'
HTTP/1.1 200 OK
Date: Sun, 11 Sep 2011 00:04:30 GMT
Server: Apache
Last-Modified: Sat, 10 Sep 2011 07:53:30 GMT
ETag: "18a84003-32-4ac9196f95280"
Accept-Ranges: bytes
Content-Length: 50
Content-Type: text/cache-manifest
但是,OS X 10.6的Chrome開發者正在回購出現以下錯誤:
Application Cache Error event: Invalid manifest mime type (text/plain) http://www.matthewlehner.ca/manifest.appcache
顯然情況並非如此,但我該如何解決這個問題?它是Chrome,.htaccess還是託管問題?
你給我的作品... – tjameson
應用程序緩存清單作品鏈接//應用程序緩存,內部? –
是啊!文檔是從應用程序緩存加載清單http://www.matthewlehner.ca/manifest.appcache 應用程序緩存檢查事件 應用程序緩存NoUpdate事件這是第二次加載後。 – tjameson