HTML 5 Cache Manifest and dynamic data (Xpages)

On May 18, 2010, in mobile, xpages, by Mark Hughes

So cache manifest files are a very useful tool. With dynamic data though they are a little tough to work with.

For example:
You want to cache some images and script libraries local, as well as css, and some other files. It does this great, but it will also cache the html generated by the xpage the first time it was opened.
The problem: the view information changes, and every time you open the xpage you get the initial html and wrong view information.
The first thing you need to do is set a partial refresh on the view info after load. But that is only half the battle, as maybe you have preferences for a theme, and the preference comes from a profile document. So the theme will not change.
The solution: Update the cache-manifest file which will make the page re-cache itself.
So how do you do this for every time a page is refreshed?
Well Notes makes it easy – you make a notes page. On the page properties tell it content type = text/cache-manifest. Name it something like my.manifest. Then on the version line of the manifest you enter in computed text set to @now. You will always have a new manifest that you can use to update your local cache with.
 

One Response to HTML 5 Cache Manifest and dynamic data (Xpages)

  1. Timaysl says:

    Il enroule son chemin facilement Г  travers un salon sombre, un autre peti https://thelisteningroom.com/a-finasterid-1mg-kaufen | finasterid 1mg kaufen http://www.socialanatet.se/a-facult-de-la-rochelle | facult? de la rochelle Vous serez seul jusqu’Г  ce que d’autres arrivent, mais vous aurez besoi http://www.milanpresse.com/a-viagra-alkohol | viagra alkohol http://beabombshellcosmetics.com/a-progesteron-creme-biovea | progesteron creme biovea

Leave a Reply

Your email address will not be published. Required fields are marked *