javascript - jQuery clear cache on logout -



javascript - jQuery clear cache on logout -

when users logout mobile app, how can create sure cache cleared?

what i'm thinking redirect /logout specific page clears cache , redirects front end page, how clear cache?

i'm using jquery mobile 1.0b2pre.

here's how solved it:

my /logout action users session destroyed in backend redirects /exit has id attribute of exitpage. in javascript have asked jquery mobile trigger when page created. empty dom , redirects front end page.

/exit:

<div data-role="page" id="exitpage"></div>

/my.js:

jquery('#exitpage').live('pagebeforecreate', function(){ jquery(document).empty(); window.location.replace('/'); });

javascript jquery caching jquery-mobile

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -