Hi @deltafactory,
Thanks for getting in touch! We don’t directly control the max-age or re-validation headers for these requests, which means that is not something we are setting intentionally. Instead that would be managed by the browser caching solution you employ, across the entire site’s REST API.
Altering the payload can be done, but it would require a small extension of our frontend JavaScript REST API module, as it would need to be done before the request is dispatched. We don’t track the last modified dates of the map at the moment, but we could potential add some kind of counter for you.
We could add a counter of some sort to the payload using our Custom JavaScript setting, but I’m not sure what we would base it on without a last edit time/date. On that note, this is likely something we should be tracking for cases like this, I’m adding it to our development to-do list so that this can be improved in a future update as well.
The issue with the counter solution in this case is that, when the map makes those requests it doesn’t know how many shapes/markers to expect as that is data which is returned with these requests, so it would need to be something else.
As an alternative, we could do something like sending the current browser hour (time from local machine) as part of the payload, but that would mean the browser cache would only apply for an hour at most.