Commit afe18cf1 authored by gbyte.co's avatar gbyte.co

Changing CacheableResponse back to Response because of caching problems.

parent 4aac9619
......@@ -6,7 +6,7 @@
namespace Drupal\simplesitemap\Controller;
use Drupal\Core\Cache\CacheableResponse;
//use Drupal\Core\Cache\CacheableResponse;
use Symfony\Component\HttpFoundation\Response;
use Drupal\simplesitemap\Simplesitemap;
......@@ -29,6 +29,7 @@ class SimplesitemapController {
$output = $sitemap->get_sitemap($sitemap_id);
// Display sitemap with correct xml header.
return new CacheableResponse($output, Response::HTTP_OK, array('content-type' => 'application/xml'));
// return new CacheableResponse($output, Response::HTTP_OK, array('content-type' => 'application/xml'));
return new Response($output, Response::HTTP_OK, array('content-type' => 'application/xml'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment