Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

how to kill cache

I need to make sure that every time user goes to specific page that page loads without cache. How do I do that?

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

how to kill cache

Eric.. Let me know if you figure this out.
I'm having a bugger of a time with it !
I'm using multi-page template and have tried a ton of stuff.
I have used the .remove(), window.location.reload, etc.
Tiggzi provided navigate to screen and full page refresh not work either...
Its a Jquery thing .
Am considering going to back to single page template for this reason.

Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

how to kill cache

I haven't figured it out yet..

It really sucks, for example my homepage gets cached when phone is in offline mode and stays that way even phone is online..
Using full referesh seems to help but it's causing app to show white screen when reloading.. not pretty

Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

how to kill cache

I noticed something else, when page is cached it doesn't run properly INVOKE SERVICE attached to LOAD event - what's theproblem, LOAD event doesn;t get triggered again? it should IMHO since it's multipage project..

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to kill cache

If the page is already in the DOM, it's not loaded any more. Use page show event.

Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

how to kill cache

Max, I use multipage project so as far I understand every time I go to a page it loads again from zero and builds DOM not just shows as it would in a single page project, right?

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

how to kill cache

Keep in mind. Load event fires once for entire multi-page project...

Emmz
Posts: 0
Joined: Sat Jun 23, 2012 11:06 pm

how to kill cache

After MUCH Testing I have learned...
Multi-page template not a good idea if you have user entered data, forms etc.
No reliable methods to deal with removing page, cache etc.

Go with singe page template and NOTE...
Your start page is loaded first and STAYS in DOM unless you manually remove it.
So its best to not use forms on entry page.. Make it a menu or splash page maybe.
Any page you want to keep cached use = data-dom-cache = true
Any page you DONT want cached use = data-dom-cache = false.

Use Tiggzi.navigateTo('pageuWant',{ transition: 'none'});
To navigate. Keeps android from flashing... And DOM intact.

Now Giv'er....

Eric5020946
Posts: 0
Joined: Tue Sep 18, 2012 4:31 pm

how to kill cache

I didn't know that, based on our conversation in the past I was under impression that it fires multiple times.. seperate for each page

so what is the advantage of having multipage project?

Return to “Issues”