You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Swiftype's API comes at a cost. We have a limit to the number of searches we can do via Swiftype before we are charged for more usage. To try and keep cost down and avoid unnecessary search requests, we need to implement some kind of caching mechanism for the results so that visiting guide pages incur as least cost as possible.
TODO:
We need to define how we want to cache the results. We can use something like the browser's local storage, or something like service workers to cache network requests on a per-user basis. Another alternative would be to fetch the results during the build and add the results to the GraphQL schema, which means we only incur cost when the site builds.
The text was updated successfully, but these errors were encountered:
Description
Swiftype's API comes at a cost. We have a limit to the number of searches we can do via Swiftype before we are charged for more usage. To try and keep cost down and avoid unnecessary search requests, we need to implement some kind of caching mechanism for the results so that visiting guide pages incur as least cost as possible.
TODO:
We need to define how we want to cache the results. We can use something like the browser's local storage, or something like service workers to cache network requests on a per-user basis. Another alternative would be to fetch the results during the build and add the results to the GraphQL schema, which means we only incur cost when the site builds.
The text was updated successfully, but these errors were encountered: