cannin / ihop-reach

A web application to access biological data extracted from biomedical literature.
https://reach.nrnb-docker.ucsd.edu
GNU Lesser General Public License v3.0
4 stars 4 forks source link

Use Cache API for Search Index #38

Closed cannin closed 5 years ago

cannin commented 5 years ago

Store the search_index on the client machine to avoid re-downloads: https://davidwalsh.name/cache

cannin commented 5 years ago

The caching config using the gatsby-offline-plugin is here:

https://github.com/RohitChattopadhyay/ihop-reach/blob/f9d86c5d30da0ea57f2801fb35714f5fca150636/src/gatsby-config.js#L75

RohitChattopadhyay commented 5 years ago

Following is the performance comparision for web app


Before gzip compression 48% After caching 91% Please note this audit was run on 2nd load of the page. 1st load involves the download of search_index.json (6.8MB) hence has poor performance.

cannin commented 5 years ago

@RohitChattopadhyay can we close this now that HTTPS has been enabled for the Caching service worker?

RohitChattopadhyay commented 5 years ago

@RohitChattopadhyay can we close this now that HTTPS has been enabled for the Caching service worker?

Thanks, this issue can be closed. It has been tested after implementing SSL #52 . It is working fine, typeahead, as well as search, are working.