Not sure if this makes sense, but why did adding the code on my http handler (responds to a ajax request returning a json result):
adding context.Response.Headers.Add("Cache-Control", "no-cache");
cause an error and say integrated pipeline mode has to be set?