I have some old mod_perl code that generates dynamic content. I was asked to implement sending an Etag on each reply.
It seems the way to do this might be to add a mod_perl handler, but this content is generated dynamically, so I need to make the Etag a checksum of the response body. I have yet not found a way to get the contents of the response body in a mod_perl handler to checksum it.
How should I dynamically generate Etags based on the response body in mod_perl?