Ho un app rotaie che sto cercando di ottenere tramite la cache di applicazione HTML5 utilizzando Rack :: Offline. Il file application.manifest è impostato e viene scaricato e controllato dalla mia pagina HTML. Il manifesto appare come segue:applicazione HTML5 non manifestare a svuotare la cache sul cambiamento manifesta
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:
/
La pagina che sto accedendo è localhost: 3000/cellulare, e ha cache meravigliosamente (visualizzabile quando prendo il server rotaie). Tuttavia, il file application.manifest a cui fa riferimento è stato modificato (in effetti cambia a ogni richiesta manipolando l'id esadecimale commentato), ma Chrome non sta aggiornando la pagina. Il log di console in Chrome fornisce quanto segue:
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
Non capisco perché non funziona. Sembra che stia facendo tutto ciò che dovrebbe fino all'ultima riga! Ottengo un registro simile se navigo nel mio browser su localhost: 3000/application.manifest - sembra che il manifest sia memorizzato nella cache stessa, quindi potrebbe essere il motivo per cui si lamenta che il manifest è cambiato? Qualche idea?
Grazie!
mai ottenere questo risolto? Le risposte qui sotto non sono di aiuto. –
Risolto il problema e ho risposto di seguito. Spero che sia utile se non lo hai già risolto. –