website icon indicating copy to clipboard operation
website copied to clipboard

Enhancement suggestion: set GZIP compression to true when creating Cloudfront distribution

Open oussj opened this issue 4 years ago • 1 comments

Hello!

Most of the suggestion is in the title. When I audited with Lighthouse my static website deployed with the serverless website component, I found out that I had a lot to win by gzipping my assets.

Gzipping is not enabled by default when creating the distribution as I could see it here

I suggest to set this value to true by default instead of false

Otherwise, if for some reason the default behaviour should not change, I suggest adding it as an optional input in the serverless.yml file

I'd be happy to do the pull request.

oussj avatar Nov 29 '20 21:11 oussj

@eahefnawy, hello. Could you, please, take a look at this PR. I guess the compression feature will be very useful.

fulminant avatar Jan 22 '21 16:01 fulminant