chenhuanle / html5rocks

Automatically exported from code.google.com/p/html5rocks
0 stars 0 forks source link

Use dynamic hidden iframe to load appcache manifest #743

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
General idea:
<iframe src> points to a url that contains a page pointing to a dynamically 
created
manifest based on query parameters. If the <iframe src> parameters change, the 
URL
will, and the manifest will be updated.

I believe this also prevents the main page from being implicitly cached since 
it isn't the one
containing the mainfest attribute.

I'll check on the feasibility of this.

Original issue reported on code.google.com by ericbide...@html5rocks.com on 7 Dec 2011 at 1:10

GoogleCodeExporter commented 8 years ago
Hi Eric,

did you ever succesfully implemented this?

Original comment by pocketm...@gmail.com on 12 Apr 2012 at 8:09

GoogleCodeExporter commented 8 years ago
I can confirm it works on mobile safari. Great to prevent caching the mainpage 
and create a fallback on the main page as well.

Thanks for pointing me out to this idea...been struggling for 3 days with 
fallbacks and appcache but it finally works the way i want...

Original comment by pocketm...@gmail.com on 12 Apr 2012 at 10:55

GoogleCodeExporter commented 8 years ago
did this realy worked?  I tested it and the resources files in the parent page 
(the one that includes the iframe) did not get pulled from the cache data!
Am I doing some thing wrong?

Original comment by mintz...@gmail.com on 7 Jul 2012 at 1:54

GoogleCodeExporter commented 8 years ago
I'm having trouble getting this to work as well. When testing with Chrome, it 
appears that only the iframe src gets loaded from the application cache and 
everything else is loaded from the server. I have also verified that the 
application cache is not working correctly by modifying a cached file without 
changing the cache manifest. The modified file was reloaded from the server 
after a simple refresh, which is not correct, if I understand correctly.

Original comment by dhar...@mindframe.com on 15 Oct 2012 at 7:51

GoogleCodeExporter commented 8 years ago
Same issue for me when testing it with Chrome. Only the iframe src html page is 
loaded from cache, the rest is loaded form network

Original comment by gilles.f...@gmail.com on 22 Mar 2013 at 9:56