Drupal is a registered trademark of Dries Buytaert

CacheableJsonResponse is a powerful tool that can easily enhance the performance of your headless site.

However, it has two main drawbacks:

  • Debugging challenges: If you encounter an issue, you need to replace CacheableJsonResponse with JsonResponse or clear the cache after every change, which can be cumbersome.
  • JSON:API format limitation: It doesn’t support displaying entities in the JSON:API format.

This module solves both problems:

  • Simplified debugging: By using the BetterJsonResponse class instead of CacheableJsonResponse, you can disable the JSON response cache directly from the back office with a single checkbox.
  • Enhanced JSON:API support: You can now display any entity in JSON:API format, with the ability to add includes as needed.

Activity

Total releases
1
First release
Dec 2024
Latest release
1 year ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Dec 7, 2024