Not sure what you mean here. How is client determining content type? This is based on view name e.g. "js/elgg"