Edited result_types to prevent trailing empty string on split
Only make AJAX call when local storage has expired