tonyfromundefined / nuxt-serverless

Nuxt.js Serverless SSR Starter on AWS (Lambda + API Gateway + S3) with Serverless Framework
254 stars 32 forks source link

Explain why disable gzip #3

Open pschaub opened 5 years ago

pschaub commented 5 years ago

Hey dev 😄

Please explain why you change the GZIP behaviour here: https://github.com/jeehyukwon/nuxt-edge-serverless-template/blob/master/nuxt.config.js#L52-L53

I think you want to disable GZIP because AWS will do it themself, but why do you still use gzip on files that are bigger then 1073741824 ?

Btw: Same question why disabling etag https://github.com/jeehyukwon/nuxt-edge-serverless-template/blob/master/nuxt.config.js#L51

tonyfromundefined commented 5 years ago

Turning on the gzip compression option causes errors to pass through the AWS API Gateway. I have not solved this problem yet, so I have disabled the gzip compression option.

c-s-alex commented 5 years ago

This repo was exactly what i was looking for. Awesome work!