Skip to content

Commit

Permalink
Enable text compression in response
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Feb 13, 2024
1 parent f0ef1bd commit 8ebb569
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions admin/config/middlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ module.exports = ({ env }) => [
},
},
},
{
name: "strapi::compression",
config: {
gzip: true,
},
},
"strapi::cors",
"strapi::poweredBy",
"strapi::logger",
Expand Down
1 change: 1 addition & 0 deletions admin/src/api/post/controllers/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ module.exports = createCoreController("api::post.post", ({ strapi }) => ({
image: true,
},
},
image: true,
},
});

Expand Down

0 comments on commit 8ebb569

Please sign in to comment.