Why ondata_response in custon plugin called many times?

kwu
New Member

I built a custom plugin and found ondata_response is invoked 2 or 3 times when receive a big size payload from backend server. Is that true? Could we limit ondata_response only invoked once?

0 1 67
1 REPLY 1

Former Community Member
Not applicable

ondata_request and ondata_response receive chunked requests and responses respectively. Therefore they are invoked multiple times. Take a look at this example on how to accumulate responses.