From 8ebb56964ecc2dc98758a5204ed5a96e5516b22c Mon Sep 17 00:00:00 2001 From: cp-sumi-k Date: Tue, 13 Feb 2024 17:39:11 +0530 Subject: [PATCH] Enable text compression in response --- admin/config/middlewares.js | 6 ++++++ admin/src/api/post/controllers/post.js | 1 + 2 files changed, 7 insertions(+) diff --git a/admin/config/middlewares.js b/admin/config/middlewares.js index c9dc328f..2e6b3e36 100644 --- a/admin/config/middlewares.js +++ b/admin/config/middlewares.js @@ -28,6 +28,12 @@ module.exports = ({ env }) => [ }, }, }, + { + name: "strapi::compression", + config: { + gzip: true, + }, + }, "strapi::cors", "strapi::poweredBy", "strapi::logger", diff --git a/admin/src/api/post/controllers/post.js b/admin/src/api/post/controllers/post.js index 6a8776a0..951a5e67 100644 --- a/admin/src/api/post/controllers/post.js +++ b/admin/src/api/post/controllers/post.js @@ -53,6 +53,7 @@ module.exports = createCoreController("api::post.post", ({ strapi }) => ({ image: true, }, }, + image: true, }, });