We would like to cache data for some dropdown lists on the client machine to reduce the transfer of slow changing info. This data will be used on multiple pages within a business app so for example a customer list of 5,000 customers is frequently used either for searching, creating a sales order, or other purposes. We've tried both full load of the data with the page as well as paged database access and loading the grid on demand which brings back only 25-50 records. Users are complaining about the performance of both options and want it faster so we are looking for options on how to cache the data at the client for reuse.
We've seen some notation that online regarding caching that perhaps a JS file could be generated by the server and cached locally to be the datasource for the ddl but never found how to do this.
Any suggestions? Or other options that you would recommend?
Note: we'll need to address expiry of this too as some of the lists will change a few times per day and should be refreshed (not on a timer but when they change based on response codes).