3 namespace Drupal\Core\Cache;
5 use Symfony\Component\HttpFoundation\JsonResponse;
8 * A JsonResponse that contains and can expose cacheability metadata.
10 * Supports Drupal's caching concepts: cache tags for invalidation and cache
11 * contexts for variations.
13 * @see \Drupal\Core\Cache\Cache
14 * @see \Drupal\Core\Cache\CacheableMetadata
15 * @see \Drupal\Core\Cache\CacheableResponseTrait
17 class CacheableJsonResponse extends JsonResponse implements CacheableResponseInterface {
19 use CacheableResponseTrait;