PDA

View Full Version : [OPEN-305] KitchenSink Demo - invalid cache.manifest



mystix
14 Sep 2010, 10:15 AM
Sencha Touch version tested:

0.94


Platform tested against:

iOS 3.x
iOS 4.x
Safari
Chrome


Description:

Kitchen Sink demo's cache manifest is invalid


Test Case:

view the kitchen sink demo on a local webserver and inspect the server logs.


The result that was expected:

on subsequent refreshes, server should only register access log hits for favicon.ico and cache.manifest


The result that occurs instead:

all kitchensink demo files are requested from the server again


Possible fix:


CACHE MANIFEST
#rev3

resources/img/sencha.png
resources/img/icon.png
#resources/img/startup.png #non-existent
resources/img/phone_startup.png
resources/img/tablet_startup.png

../../resources/css/ext-touch.css
../../ext-touch-debug.js

resources/css/sink.css
resources/css/codebox.css

#src/demos/ajax.js #non-existent
src/demos/animations.js
src/demos/bottomtabs.js
src/demos/buttons.js
src/demos/carousel.js
src/demos/forms.js
src/demos/icons.js
src/demos/map.js
#src/demos/overlay.js #non-existent
src/demos/tabs.js
src/demos/toolbars.js
src/demos/touch.js
src/demos/data.js
src/demos/list.js
src/demos/picker.js

#missing
src/demos/LeafSelectedPlugin.js
src/demos/nestedlist.js
src/demos/audio.js
src/demos/video.js
src/demos/sheets_overlays.js


src/CodeBox.js
src/index.js
src/structure.js

test.json

#required for google maps example
NETWORK:
*

BrendanC
15 Sep 2010, 4:58 PM
Please test against 0.95.

mystix
15 Sep 2010, 9:11 PM
Still invalid.

The cache.manifest files from .94 and .95 are practically identical.

BrendanC
16 Sep 2010, 9:46 AM
Thanks for the bug report.

mystix
13 Oct 2010, 11:13 PM
[ Sencha Touch 0.97 ]
i'm still experiencing manifest problems on the latest beta...

for some strange reason, the manifest has been removed from the kitchensink index.html file.

additionally, there's an ONLINE config option being used which is invalid for Webkit-based browsers (should be NETWORK: instead).
(note: i see an index_android.html file now, so is the ONLINE config option only valid on the android browser?)

the last few lines in cache.manifest should simply be


NETWORK:
*

which will take care of external online resources like google maps.

mystix
28 Oct 2010, 8:22 AM
[ Sencha Touch 0.98 ]
cache.manifest is still invalid.

Same NETWORK bug as in 0.97, plus an additional invalid reference to src/demos/data.js (there's no such file, but there is a directory src/demos/data/ which contains lots of other js files).