• Pricing
© 2026 Serverless, Inc. All rights reserved.

Framework

  • Overview
  • Documentation
  • Plugins360
  • Pricing

Learn

  • Blog
  • GuidesUpdated
  • Examples240
  • Courses

Resources

  • Support
  • Security
  • Trust Center
  • Status

Community

  • Slack
  • GitHub47k
  • Forum
  • Meetups

Company

  • About
  • Careers
  • Contact
  • Partners

Legal

  • Terms of Service
  • Privacy Policy
  • Trademark
  • DMCA
evgenykireev

Serverless API Compression

by

Serverless plugin that enables/disables content compression setting in API Gateway

0
18
  1. Serverless API Compression

serverless-content-compression

Serverless plugin that enables/disables content compression setting in API Gateway

Deprecated

Serverless Framework now supports this functionality out of the box. Example:

provider:
  name: aws
  apiGateway:
    minimumCompressionSize: 1024

How to use

  1. npm install --save-dev serverless-api-compression

  2. Add plugin to your serverless.yml config

plugins:
   - serverless-api-compression
  1. Add contentCompression attribute to your custom section
 custom:
  contentCompression: 1024

contentCompression value is a MinimumCompressionSize in bytes. Use 0 to enable compression for all responses. Use null or false to disable it.

Contents

  • serverless-content-compression
  • Deprecated
  • How to use

Related

GuidesPluginsExamplesSlack CommunitySupport