It turns out that you can control the caching of each tab by setting the "cache.tabs" data in each tab binding element.
I posted the answer in another post: caching JQuery UI Tabs , but I will just post the code here.
// disable cache by default $("#tabs").tabs({ cache: false, });
Then, after the contents of the tab have been loaded for the first time, you can enable caching for this tab. I just put it in $(document).ready to cache the page:
$(document).ready(function () { // cache content for the current tab var currentTabIndex = $("#tabs").tabs('option', 'selected'); var currentTabAnchor = $("#tabs").data('tabs').anchors[currentTabIndex]; $(currentTabAnchor).data('cache.tabs', true) });
source share