Express middleware that handles the Etag caching mechanism for you and only calls the dynamic function to load the content when needed.