For example, I have a JSON api that will often return the same thing and a user may request it multiple times. It can change at any moment, so I have to have max-age=0, but I’d like for an etag to be generated so that I can at least send a 304 instead of the json payload again if it hasn’t changed.
Ideally the solution would build the etag off of the map that would be sent to json and skip the json encoding in the case of a 304. Thanks!