Dear Community,
We are going to implement multi-languages on our mobile application. We use the HTTP header parameter XCODE-LANGUAGE in the API call to differentiate between the three (3) languages used in the application. The backend returns different response contents based on the language indicated in the header request. Note that API responses are returned from the server in JSON format (not as files).
With a single language, we cache responses on Cloudflare, and it works very well. However, with the implementation of multi-languages, we have a serious doubt that Cloudflare will only consider the URL format (which remains unchanged even when the language is different) and will always deliver the same content for every request, without taking the language into account.
Please advise us on the best method for managing multi-language caching for mobile application APIs.
Kind regards