getRequestFormat() === 'json') { return new CacheableJsonResponse(['content' => 'oh hai this is json']); } else { return new CacheableResponse("

oh hai this is html.

"); } } }