I did already.
http://www.w3.org/TR/html5/offline.html is the part regarding cache
manifest.

Cheers
Max

On Mon, Mar 1, 2010 at 09:18, Victor Hudson <[email protected]> wrote:

> Thanks Max. I was just thinking of caching the iUI framework and a simple
> login page index. The rest of the site would not be cached but load external
> ajax links. Thus providing much faster load times for app with only html
> fragments being transferred. Could you provide a link to the html5 spec you
> mentioned. I have looked on google briefly, but only find small brief
> tutorials. I would like to look at something official.
>
> Vic Hudson
>
>
>
>
> On Mon, Mar 1, 2010 at 1:59 AM, Maximilian Melcher <
> [email protected]> wrote:
>
>> Hello,
>>
>> if there is offline data it will be used, even for ajax calls. Check
>> issue 150 (at least i remember its 150 or 153) on the iui issue
>> tracker for another usage example. You can even force an update.
>>
>> Php makes things easier, but you can do it by hand too.
>>
>> If you are interested in the topic I'll suggest you to read the html5
>> specification regarding local storage and app cache, its readable ;)
>>
>> Cheers
>> Max
>>
>>
>>
>>
>> Am 01.03.2010 um 05:27 schrieb Victor Hudson <[email protected]>:
>>
>> > Very nice. I do have a question that you or someone else here may be
>> > able to answer. When using a cache manifest and the user visits the
>> > site while they are online does the browser use the cached files or
>> > does it ignore manifested files and download based on src. What I am
>> > thinking is this could be used to give better web app performance over
>> > cell networks. If the browser uses cached files even when on line then
>> > you could manifest things like the iui frame work, all css, js, and
>> > images along with the initial index page. Then let Ajax load the rest
>> > as needed. The only data that would need to be transferred would be
>> > HTML fragments and you have greatly reduced load times for the user.
>> > Any thoughts or comments.
>> >
>> > Vic Hudson
>> > Phone: (859) 806-1773
>> > Personal: [email protected]
>> > School: [email protected]
>> > Work: [email protected]
>> >
>> > On Feb 28, 2010, at 19:53, Alex Zylka <[email protected]> wrote:
>> >
>> >> Ok, so I said that I would create some sort of offline webapp
>> >> tutorial
>> >> thing. So here goes:
>> >>
>> >> There is one important thing that you need for this simple, easy to
>> >> use solution. It's PHP. If you don't have it, you'll have to list all
>> >> of the files you want to cache manually.
>> >>
>> >> Step 1. Create a PHP file called manifest.php
>> >> Step 2. Put the following into it:
>> >>
>> >> <?php
>> >> header('Content-Type: text/cache-manifest');
>> >> echo "CACHE MANIFEST\n";
>> >>
>> >> $hashes = "";
>> >>
>> >> $dir = new RecursiveDirectoryIterator(".");
>> >> foreach(new RecursiveIteratorIterator($dir) as $file) {
>> >>   if ($file->IsFile() &&
>> >>       $file != "./manifest.php" &&
>> >>       substr($file->getFilename(), 0, 1) != ".")
>> >>   {
>> >>     echo $file . "\n";
>> >>     $hashes .= md5_file($file);
>> >>   }
>> >> }
>> >> echo "# Hash: " . md5($hashes) . "\n";
>> >> ?>
>> >>
>> >> Step 3. Put manifest.php in the directory of the webapp that you want
>> >> to use offline
>> >> Step 4. Replace your <html> tag with <html manifest="manifest.php">
>> >> in
>> >> the index.html, index.php, etc. file
>> >>
>> >> Note: That md5 hash is necessary so that every time you add a new
>> >> file, or edit one, the hash changes, forcing the device that is using
>> >> the webapp offline to re-cache, and update its offline files.
>> >>
>> >> Alex
>> >>
>> >> P.S. A more in-depth tutorial, that manually list files, with an
>> >> example can be found here:
>> http://www.thecssninja.com/javascript/how-to-create-offline-webapps-on-the-iphone
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups "iPhoneWebDev" group.
>> >> To post to this group, send email to [email protected].
>> >> To unsubscribe from this group, send email to
>> [email protected]<iphonewebdev%[email protected]>
>> >> .
>> >> For more options, visit this group at
>> http://groups.google.com/group/iphonewebdev?hl=en
>> >> .
>> >>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "iPhoneWebDev" group.
>> > To post to this group, send email to [email protected].
>> > To unsubscribe from this group, send email to
>> [email protected]<iphonewebdev%[email protected]>
>> > .
>> > For more options, visit this group at
>> http://groups.google.com/group/iphonewebdev?hl=en
>> > .
>> >
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "iPhoneWebDev" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<iphonewebdev%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/iphonewebdev?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "iPhoneWebDev" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<iphonewebdev%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/iphonewebdev?hl=en.
>



-- 
Max

-- 
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en.

Reply via email to