diff --git a/jsonapi.services.yml b/jsonapi.services.yml
index 3a97096..932fd93 100644
--- a/jsonapi.services.yml
+++ b/jsonapi.services.yml
@@ -99,3 +99,8 @@ services:
     tags:
       - { name: event_subscriber }
     arguments: ['@serializer', '%serializer.formats%']
+  jsonapi.resource_response.subscriber:
+    class: Drupal\jsonapi\EventSubscriber\ResourceResponseSubscriber
+    tags:
+      - { name: event_subscriber }
+    arguments: ['@jsonapi.serializer', '@renderer', '@current_route_match']
diff --git a/src/Controller/RequestHandler.php b/src/Controller/RequestHandler.php
index 43d767f..42d9319 100644
--- a/src/Controller/RequestHandler.php
+++ b/src/Controller/RequestHandler.php
@@ -2,12 +2,10 @@
 
 namespace Drupal\jsonapi\Controller;
 
-use Drupal\Component\Serialization\Json;
 use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
 use Drupal\Core\Render\RenderContext;
 use Drupal\Core\Routing\RouteMatchInterface;
 use Drupal\jsonapi\Context\CurrentContext;
-use Drupal\jsonapi\ResourceResponse;
 use Symfony\Component\DependencyInjection\ContainerAwareInterface;
 use Symfony\Component\DependencyInjection\ContainerAwareTrait;
 use Symfony\Component\DependencyInjection\ContainerInterface;
@@ -57,7 +55,6 @@ class RequestHandler implements ContainerAwareInterface, ContainerInjectionInter
     /* @var \Drupal\jsonapi\Context\CurrentContext $current_context */
     $current_context = $this->container->get('jsonapi.current_context');
     $unserialized = $this->deserializeBody($request, $serializer, $route->getOption('serialization_class'), $current_context);
-    $format = $request->getRequestFormat();
     if ($unserialized instanceof Response && !$unserialized->isSuccessful()) {
       return $unserialized;
     }
@@ -75,9 +72,6 @@ class RequestHandler implements ContainerAwareInterface, ContainerInjectionInter
     }
 
     // Invoke the operation on the resource plugin.
-    // All REST routes are restricted to exactly one format, so instead of
-    // parsing it out of the Accept headers again, we can simply retrieve the
-    // format requirement. If there is no format associated, just pick JSON.
     $action = $this->action($route_match, $method);
     $resource = $this->resourceFactory($route, $current_context);
 
@@ -97,67 +91,6 @@ class RequestHandler implements ContainerAwareInterface, ContainerInjectionInter
       $response->addCacheableDependency($context->pop());
     }
 
-    return $this->renderJsonApiResponse($request, $response, $serializer, $format);
-  }
-
-  /**
-   * Renders a resource response.
-   *
-   * Serialization can invoke rendering (e.g., generating URLs), but the
-   * serialization API does not provide a mechanism to collect the
-   * bubbleable metadata associated with that (e.g., language and other
-   * contexts), so instead, allow those to "leak" and collect them here in
-   * a render context.
-   *
-   * @param \Symfony\Component\HttpFoundation\Request $request
-   *   The request object.
-   * @param \Drupal\Core\Cache\CacheableResponseInterface $response
-   *   The response from the REST resource.
-   * @param \Symfony\Component\Serializer\SerializerInterface $serializer
-   *   The serializer to use.
-   * @param string $format
-   *   The response format.
-   *
-   * @return \Drupal\Core\Cache\CacheableResponseInterface
-   *   The altered response.
-   */
-  protected function renderJsonApiResponse(Request $request, ResourceResponse $response, SerializerInterface $serializer, $format) {
-    $data = $response->getResponseData();
-    $context = new RenderContext();
-
-    $cacheable_metadata = $response->getCacheableMetadata();
-    // Make sure to include the default cacheable metadata, since it won't be
-    // added if you don't user render arrays and the HtmlRenderer. We are not
-    // using the container variable '%renderer.config%' because is too tied to
-    // HTML generation.
-    $cacheable_metadata->addCacheContexts(static::$requiredCacheContexts);
-
-    $output = $this->container->get('renderer')
-      ->executeInRenderContext($context, function () use (
-        $serializer,
-        $data,
-        $format,
-        $request,
-        $cacheable_metadata
-      ) {
-        // The serializer receives the response's cacheability metadata object
-        // as serialization context. Normalizers called by the serializer then
-        // refine this cacheability metadata, and thus they are effectively
-        // updating the response object's cacheability.
-        return $serializer->serialize($data, $format, ['request' => $request, 'cacheable_metadata' => $cacheable_metadata]);
-      });
-    $response->setContent($output);
-    if (!$context->isEmpty()) {
-      $response->addCacheableDependency($context->pop());
-    }
-
-    $response->headers->set('Content-Type', $request->getMimeType($format));
-    // Add rest settings config's cache tags.
-    $response->addCacheableDependency($this->container->get('config.factory')
-      ->get('jsonapi.resource_info'));
-
-    assert('$this->validateResponse($response)', 'A JSON API response failed validation (see the logs for details). Please report this in the issue queue on drupal.org');
-
     return $response;
   }
 
@@ -281,41 +214,4 @@ class RequestHandler implements ContainerAwareInterface, ContainerInjectionInter
     return $resource;
   }
 
-  /**
-   * Validates a response against the JSON API specification.
-   *
-   * @param \Drupal\jsonapi\ResourceResponse $response
-   *   The response to validate.
-   *
-   * @return bool
-   *   FALSE if the response failed validation, otherwise TRUE.
-   */
-  protected static function validateResponse(ResourceResponse $response) {
-    if (!class_exists("\\JsonSchema\\Validator")) {
-      return TRUE;
-    }
-    // Do not use Json::decode here since it coerces the response into an
-    // associative array, which creates validation errors.
-    $response_data = json_decode($response->getContent());
-    if (empty($response_data)) {
-      return TRUE;
-    }
-
-    $validator = new \JsonSchema\Validator;
-    $schema_path = DRUPAL_ROOT . '/' . drupal_get_path('module', 'jsonapi') . '/schema.json';
-
-    $validator->check($response_data, (object)['$ref' => 'file://' . $schema_path]);
-
-    if (!$validator->isValid()) {
-      \Drupal::logger('jsonapi')->debug('Response failed validation: @data', [
-        '@data' => Json::encode($response_data),
-      ]);
-      \Drupal::logger('jsonapi')->debug('Validation errors: @errors', [
-        '@errors' => Json::encode($validator->getErrors()),
-      ]);
-    }
-
-    return $validator->isValid();
-  }
-
 }
diff --git a/src/EventSubscriber/ResourceResponseSubscriber.php b/src/EventSubscriber/ResourceResponseSubscriber.php
new file mode 100644
index 0000000..f2735b1
--- /dev/null
+++ b/src/EventSubscriber/ResourceResponseSubscriber.php
@@ -0,0 +1,203 @@
+<?php
+
+namespace Drupal\jsonapi\EventSubscriber;
+
+use Drupal\Core\Cache\CacheableResponse;
+use Drupal\Core\Cache\CacheableResponseInterface;
+use Drupal\Core\Render\RenderContext;
+use Drupal\Core\Render\RendererInterface;
+use Drupal\jsonapi\ResourceResponse;
+use Drupal\jsonapi\ResourceResponseInterface;
+use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\HttpFoundation\Response;
+use Symfony\Component\HttpKernel\Event\FilterResponseEvent;
+use Symfony\Component\HttpKernel\KernelEvents;
+use Symfony\Component\EventDispatcher\EventSubscriberInterface;
+use Symfony\Component\Serializer\SerializerInterface;
+
+/**
+ * Response subscriber that serializes and removes ResourceResponses' data.
+ *
+ * @see \Drupal\rest\EventSubscriber\ResourceResponseSubscriber
+ *
+ * This is 99% identical to \Drupal\rest\EventSubscriber\ResourceResponseSubscriber
+ * but with a few differences:
+ * 1. It has the @jsonapi.serializer service injected instead of @serializer
+ * 2. It has the @current_route_match service no longer injected
+ * 3. It hardcodes the format to 'api_json'
+ * 4. In the call to the serializer, it passes in the request and cacheable
+ *    metadata as serialization context.
+ * 5. It validates the final response according to the JSON API JSON schema
+ * 6. It has a different priority, to ensure it runs before the Dynamic Page
+ *    Cache event subscriber — but this should also be fixed in the original
+ *    class, see issue
+ */
+class ResourceResponseSubscriber implements EventSubscriberInterface {
+
+  /**
+   * The serializer.
+   *
+   * @var \Symfony\Component\Serializer\SerializerInterface
+   */
+  protected $serializer;
+
+  /**
+   * The renderer.
+   *
+   * @var \Drupal\Core\Render\RendererInterface
+   */
+  protected $renderer;
+
+  /**
+   * Constructs a ResourceResponseSubscriber object.
+   *
+   * @param \Symfony\Component\Serializer\SerializerInterface $serializer
+   *   The serializer.
+   * @param \Drupal\Core\Render\RendererInterface $renderer
+   *   The renderer.
+   */
+  public function __construct(SerializerInterface $serializer, RendererInterface $renderer) {
+    $this->serializer = $serializer;
+    $this->renderer = $renderer;
+  }
+
+  /**
+   * Serializes ResourceResponse responses' data, and removes that data.
+   *
+   * @param \Symfony\Component\HttpKernel\Event\FilterResponseEvent $event
+   *   The event to process.
+   */
+  public function onResponse(FilterResponseEvent $event) {
+    $response = $event->getResponse();
+    if (!$response instanceof ResourceResponseInterface) {
+      return;
+    }
+
+    $request = $event->getRequest();
+    $format = 'api_json';
+    $this->renderResponseBody($request, $response, $this->serializer, $format);
+    $event->setResponse($this->flattenResponse($response));
+
+    assert('$this->validateResponse($event->getResponse())', 'A JSON API response failed validation (see the logs for details). Please report this in the issue queue on drupal.org');
+  }
+
+  /**
+   * Renders a resource response body.
+   *
+   * Serialization can invoke rendering (e.g., generating URLs), but the
+   * serialization API does not provide a mechanism to collect the
+   * bubbleable metadata associated with that (e.g., language and other
+   * contexts), so instead, allow those to "leak" and collect them here in
+   * a render context.
+   *
+   * @param \Symfony\Component\HttpFoundation\Request $request
+   *   The request object.
+   * @param \Drupal\jsonapi\ResourceResponseInterface $response
+   *   The response from the JSON API resource.
+   * @param \Symfony\Component\Serializer\SerializerInterface $serializer
+   *   The serializer to use.
+   * @param string|null $format
+   *   The response format, or NULL in case the response does not need a format,
+   *   for example for the response to a DELETE request.
+   *
+   * @todo Add test coverage for language negotiation contexts in
+   *   https://www.drupal.org/node/2135829.
+   */
+  protected function renderResponseBody(Request $request, ResourceResponseInterface $response, SerializerInterface $serializer, $format) {
+    $data = $response->getResponseData();
+
+    // If there is data to send, serialize and set it as the response body.
+    if ($data !== NULL) {
+      $context = new RenderContext();
+      $output = $this->renderer
+        ->executeInRenderContext($context, function () use ($serializer, $data, $format, $request, $response) {
+          // The serializer receives the response's cacheability metadata object
+          // as serialization context. Normalizers called by the serializer then
+          // refine this cacheability metadata, and thus they are effectively
+          // updating the response object's cacheability.
+          return $serializer->serialize($data, $format, ['request' => $request, 'cacheable_metadata' => $response->getCacheableMetadata()]);
+        });
+
+      if ($response instanceof CacheableResponseInterface && !$context->isEmpty()) {
+        $response->addCacheableDependency($context->pop());
+      }
+
+      $response->setContent($output);
+      $response->headers->set('Content-Type', $request->getMimeType($format));
+    }
+  }
+
+  /**
+   * Flattens a fully rendered resource response.
+   *
+   * Ensures that complex data structures in ResourceResponse::getResponseData()
+   * are not serialized. Not doing this means that caching this response object
+   * requires unserializing the PHP data when reading this response object from
+   * cache, which can be very costly, and is unnecessary.
+   *
+   * @param \Drupal\jsonapi\ResourceResponseInterface $response
+   *   A fully rendered resource response.
+   *
+   * @return \Drupal\Core\Cache\CacheableResponse|\Symfony\Component\HttpFoundation\Response
+   *   The flattened response.
+   */
+  protected function flattenResponse(ResourceResponseInterface $response) {
+    $final_response = ($response instanceof CacheableResponseInterface) ? new CacheableResponse() : new Response();
+    $final_response->setContent($response->getContent());
+    $final_response->setStatusCode($response->getStatusCode());
+    $final_response->setProtocolVersion($response->getProtocolVersion());
+    $final_response->setCharset($response->getCharset());
+    $final_response->headers = clone $response->headers;
+    if ($final_response instanceof CacheableResponseInterface) {
+      $final_response->addCacheableDependency($response->getCacheableMetadata());
+    }
+    return $final_response;
+  }
+
+  /**
+   * Validates a response against the JSON API specification.
+   *
+   * @param \Drupal\jsonapi\ResourceResponse $response
+   *   The response to validate.
+   *
+   * @return bool
+   *   FALSE if the response failed validation, otherwise TRUE.
+   */
+  protected static function validateResponse(ResourceResponse $response) {
+    if (!class_exists("\\JsonSchema\\Validator")) {
+      return TRUE;
+    }
+    // Do not use Json::decode here since it coerces the response into an
+    // associative array, which creates validation errors.
+    $response_data = json_decode($response->getContent());
+    if (empty($response_data)) {
+      return TRUE;
+    }
+
+    $validator = new \JsonSchema\Validator;
+    $schema_path = DRUPAL_ROOT . '/' . drupal_get_path('module', 'jsonapi') . '/schema.json';
+
+    $validator->check($response_data, (object)['$ref' => 'file://' . $schema_path]);
+
+    if (!$validator->isValid()) {
+      \Drupal::logger('jsonapi')->debug('Response failed validation: @data', [
+        '@data' => Json::encode($response_data),
+      ]);
+      \Drupal::logger('jsonapi')->debug('Validation errors: @errors', [
+        '@errors' => Json::encode($validator->getErrors()),
+      ]);
+    }
+
+    return $validator->isValid();
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function getSubscribedEvents() {
+    // Run before \Drupal\dynamic_page_cache\EventSubscriber\DynamicPageCacheSubscriber.
+    $events[KernelEvents::RESPONSE][] = ['onResponse', 110];
+    return $events;
+  }
+
+}
diff --git a/src/ResourceResponse.php b/src/ResourceResponse.php
index 6cd61a2..942d065 100644
--- a/src/ResourceResponse.php
+++ b/src/ResourceResponse.php
@@ -54,10 +54,4 @@ class ResourceResponse extends Response implements CacheableResponseInterface {
     return $this->responseData;
   }
 
-  // @todo Remove this in https://www.drupal.org/node/2855693
-  public function __sleep() {
-    $this->responseData = NULL;
-    return array_keys(get_object_vars($this));
-  }
-
 }
