Set last-modified header for typeahead

Should be merged after #782