KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I am playing with an application cache and having problems with the swapCache function. I have created the world's simplest cache manifest file: CACHE MANIFEST # Timestamp: 2013-03-01 11:28:49 CACHE: media/myImage.png NETWORK: * Running the application for the 1st time gives me this in the console: Creating Application Cache with manifest http://blah_blah/offline.appcache Application Cache Checking event Application Cache Downloading event Application Cache Progress event (0 of 1) http://blah_blah/media/myImage.png Application Cache Progress event (1 of 1) Application Cache Cached event All well so far. Then I swap out the image and change the timestamp in the manifest file and get the following: Adding master entry to Application Cache with manifest http://blah_blah/offline.appcache Application Cache Downloading event Application Cache Progress event (0 of 2) http://blah_blah/media/myImage.png Application Cache Progress event (1 of 2) http://blah_blah/Widget/?invoke=myWidgetFunctionName Application Cache Progress event (2 of 2) Application Cache UpdateReady event At which point the applicationCache.swapCache() function is called giving me a DOM exception 11 error. MIME types all correctly configured on the webserver. Anyone got any ideas / can point me in the right direction? (I have read all the commonly linked appcache stuff online and can't see what am I doing wrong) Thanks! EDIT: As I mentioned in the comments below, setting the expires headers on my web server for *.appcache files to expire immediately seems to have it working although I am still getting the DOM exception error(!?). I found the following blog entry which may help: Possible Fix for Offline App Cache INVALIDSTATEERR ...but I have no idea
Tags (comma-separated)
Save Edits
Cancel