diff --git a/modules/dkan_metastore/src/MetastoreApiResponse.php b/modules/dkan_metastore/src/MetastoreApiResponse.php index 893a8f767d..61e5cd207f 100644 --- a/modules/dkan_metastore/src/MetastoreApiResponse.php +++ b/modules/dkan_metastore/src/MetastoreApiResponse.php @@ -58,6 +58,11 @@ public function cachedJsonResponse( if ($cacheMetadata = $this->getCacheMetadata($dependencies, $params)) { $response->addCacheableDependency($cacheMetadata); } + // Actively declare cacheable. Otherwise Drupal core will add 'no-cache'. + $response->headers->set( + 'Cache-Control', + 'public, max-age=3600, s-maxage=86400' + ); return $response; }