사이트의 캐시 매니페스트를 설정하려고하는데 행운이 있습니다. 데모 페이지는 여기에 있습니다 : http://www.matthewlehner.caChrome보고 html5 캐시 매니페스트 MIME 유형이 잘못되었습니다.
내가 사용하고있어 HTML이 구조를 가지고 컬`에서
AddType text/cache-manifest appcache
AddType text/cache-manifest .appcache
응답 : 루트 폴더에
<!DOCTYPE html>
<html manifest="manifest.appcache">
</html>
의 .htaccess를 다음과 같은 항목이 -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 개발자는 repo입니다. 다음 오류 발생 :
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