0

I have a Python Flask web app running in an Azure App Service plan for Linux.

As suggested by this blog post for "Compression on App Service Linux", I have looked into using the Python library Flask-Compress to enable compression using gzip for text-based static files (i.e. CSS, JavaScript). However, I understand that for Flask-Compress to work, I would have to have the Flask application serve the static files, which is not advisable for production. Instead, I should configure the HTTP server itself to serve the static files, with compression enabled.

How do I configure Azure App Service for Linux to send my static files with compression (e.g. gzip) enabled?

Charlie Brown
  • 419
  • 7
  • 20

0 Answers0