Аdded cache to typeahead

Moved from https://github.com/twitter/bootstrap/pull/6465