html5 - Testing cache.manifest on an iPad with Apache Web Server 2 -


i trying build offline web app ipad, , trying verify cache.manifest being served correctly apache web server 2, , working. have added 'addtype' .manifest extension mime-types configuration file apache web server.

if @ access logs, first request cache-manifest returned 200 http response code, further requests served 304, 'not modified'. take mean working. assets (html, images) returned combination of both (200, 304 above) indicates working.

when load on ipad, page, when go offline, , reload unable load not have connection internet.

i serving off apache web server of mac, having trouble reliably testing mac. ideas on going wrong, or how verify working?

testing cache manifest of pain in general, there few useful techniques.

first, start testing using safari on mac directly. turn off apache when want check in offline mode.

in safari, open activity monitor , resources listed "cancelled" -- typically ones missing manifest.

also use web inspector check response-type of manifest file.

in cases problem have resources in application aren't specified in manifest; causes whole caching operation fail. unfortunately there's no method in html5 api list which resources failed; supremely helpful developers.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -