Forked from hiroprotagonist/jqm-data-cache-never.js
Last active
December 14, 2015 07:09
-
-
Save markthepixel/5048279 to your computer and use it in GitHub Desktop.
Modified version of jqm-data-cache-never.js which allows for removal of all pages and keeping on pages marked.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// force certain pages to be refreshed every time. | |
// mark such pages with 'data-cache="keep"' to keep | |
// | |
jQuery('div').live('pagehide', function(event, ui){ | |
var page = jQuery(event.target); | |
if(page.attr('data-cache') != 'keep'){ | |
page.remove(); | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment