After the investigation done in T295050: Investigate mapdata API caching we think it's beneficial to enforce some caching. There are 3 situations:
- Cache for 1 day when a mapdata query API request is made with an old revision id.
- Requests with the latest revision can also be cached when the mpdgroups parameter is present, because the group ids are unique hashes that never change. Something like 5 minutes sounds like a good starting point.
- In case of an error no caching should happen, as the error might be resolved the next second.