My android app is sending App-Version and it’s value in headers to my API server. On particular API endpoint reads headers and sends response back based on App-Version. Let’s say this one is api.example.com/remote-config . My remote config values are different for different versions, but do not change frequently. They change one time in two days hardly.
How to write cache rules based on headers ?