How to enable compression for Angular app on App Service Linux?

Ninax1 1 Reputation point
2022-09-27T11:53:14.537+00:00

Hi,

I've followed this tutorial for deployment of an Angular app on App Service Linux, but I didn't find a way of enabling compression for Angular applications when running on Linux App Service. How this can be achieved?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,930 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2022-10-04T20:52:14.773+00:00

    Hi @Ninax1 ,

    Thanks for the question. Compression is not enabled on Azure App Service Linux by default but there are two ways to enable this.

    Two general approaches to enabling compression are:

    • Enabling this on a proxy in front of the application
    • Enabling this on the application (through code)

    Since on App Services we don’t expose configuration to any platform components, this would need to be done through application code.

    Please follow this steps in this tutorial to enable compression for your node application.

    Hope that helps. Please let us know if you have further questions

    Thanks,
    Grace

    ------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.