Rack :: Offline을 사용하여 HTML5 애플리케이션 캐싱을 사용하려고하는 레일 앱이 있습니다. application.manifest 파일이 설정되어 있으며 내 HTML 페이지에서 다운로드 및 확인 중입니다. 다음과 같이 매니페스트 같습니다HTML5 애플리케이션 매니페스트가 매니페스트 변경시 캐시를 지우지 않음
CACHE MANIFEST
# 2d9bf2b03a07dc960fd8fe69659ceeffd4d28ccf8619669a506c3682bf223878
404.html
422.html
500.html
login.html
stylesheets/scaffold.css
javascripts/jquery.min.js
javascripts/jquery.js
javascripts/application.js
javascripts/rmbz.js
javascripts/rails.js
images/rails.png
NETWORK:
/
내가 접근하고있어 페이지가 localhost입니다 : 3000/모바일, 그리고 (나는 레일 서버를 찍을 때 볼 수 있음)는 놀라 울 캐시있다. 그러나 참조하는 application.manifest 파일이 변경되었습니다 (사실은 주석이 달린 16 진수 ID를 조작하여 각 요청마다 변경됨). 그러나 Chrome은 페이지를 업데이트하지 않습니다. Chrome의 콘솔 로그는 다음을 제공합니다.
Document was loaded from Application Cache with manifest http://localhost:3000/application.manifest
Application Cache Checking event
Application Cache Downloading event
Application Cache Progress event (0 of 12) http://localhost:3000/login.html
Application Cache Progress event (1 of 12) http://localhost:3000/404.html
Application Cache Progress event (2 of 12) http://localhost:3000/422.html
Application Cache Progress event (3 of 12) http://localhost:3000/javascripts/rails.js
Application Cache Progress event (4 of 12) http://localhost:3000/javascripts/rmbz.js
Application Cache Progress event (5 of 12) http://localhost:3000/images/rails.png
Application Cache Progress event (6 of 12) http://localhost:3000/500.html
Application Cache Progress event (7 of 12) http://localhost:3000/javascripts/jquery.js
Application Cache Progress event (8 of 12) http://localhost:3000/stylesheets/scaffold.css
Application Cache Progress event (9 of 12) http://localhost:3000/javascripts/jquery.min.js
Application Cache Progress event (10 of 12) http://localhost:3000/mobile
Application Cache Progress event (11 of 12) http://localhost:3000/javascripts/application.js
Application Cache Error event: Manifest changed during update, scheduling retry
나는 그것이 왜 실패하는지 잘 이해하지 못합니다. 그것은 마지막 줄까지해야하는 모든 것을하고있는 것처럼 보인다! 내 브라우저에서 localhost : 3000/application.manifest로 이동하면 비슷한 로그가 표시됩니다. 매니페스트 자체가 캐싱 된 것처럼 보이므로 매니페스트가 변경되었다고 불평 할 수 있습니까? 어떤 아이디어?
감사합니다.
적이 해결 얻을 : 개발 과정에서 이러한 오류의 가능성을 감소하기 위해
다음과 같이 더 큰 cache_interval를 설정하도록 선택할 수 있습니다? 아래 답변은 도움이되지 않습니다. –
내 문제가 해결되어 아래 답변 됨. 이미이 문제를 해결하지 않았다면 약간의 사용이되기를 바랍니다. –