Full-page caching breaks with event.renderData()

Description

Full-page caching throws an error if the handler method performs `event.rederData()`.

For example, if you have an Ajax sub-nav system, where the page is loaded via ajax and just returns the main content in JSON via event.renderData(), the following error is thrown:

This is because the handler does not return a string value because the event.renderData() call short-circuits the request.

Environment

None

Assignee

Seb Duggan

Reporter

Seb Duggan

Labels

None

Accepted

Yes

Fix versions

Affects versions

Priority

High
Configure