Skip to content

Instantly share code, notes, and snippets.

View brunobraga's full-sized avatar

Bruno Braga brunobraga

  • Brisbane, Australia
View GitHub Profile
// force certain pages to be refreshed every time. mark such pages with
// 'data-cache="never"'
//
jQuery('div').live('pagehide', function(event, ui){
var page = jQuery(event.target);
if(page.attr('data-cache') == 'never'){
page.remove();
};
});