Since moving to calling servlet an exception inside the controller etc. is no longer propagated to the transformer. Instead an error response is sent back. So we need to check the response status code and only add response content to cache if response code is 2XX (otherwise we put empty string in cache which will mean the client cannot get the data)
Since moving to calling servlet an exception inside the controller etc. is no longer propagated to the transformer. Instead an error response is sent back. So we need to check the response status code and only add response content to cache if response code is 2XX (otherwise we put empty string in cache which will mean the client cannot get the data)