Skip to content

Caching Responses

Caching API responses is a crucial strategy to optimize performance, reduce latency, and minimize the number of requests made to our API. This not only enhances user experience but also helps you stay within your rate limits.

  • Storage of contractually licensed product data is only permitted with an active contract or license.
  • Stored data subject to these contractual restrictions must be deleted immediately upon termination or expiration of the license or contract.
  • Such cached product data cannot be shared with unlicensed third parties.

If you need to guarantee that user logs or historical protocols remain fully reproducible beyond the guaranteed compatibility period, store the final evaluation results and the minimum required protocol information on your side. Follow your Newtrition Data contract for contractually licensed product data, including reusable API responses and derived food data. These data must be deleted when the license or contract ends and must not be shared with unlicensed third parties. Source-specific open data rights remain governed by the applicable original licences. To support long-term user history without violating these restrictions, avoid storing full reusable food objects. Instead, store final user-facing protocol or evaluation results where legally permitted and technically required.