Compressed files in html5

I made a game, but the html5 files are 436 mb, so I tried to change it to the compressed files, but it gave an error saying “Downloading failed: Downloaded a compressed file UE4Game-HTML5-Shipping.wasmgz without the necessary HTTP response header “Content-Encoding: gzip” specified! Please configure gzip compression on this asset on the web server to serve gzipped assets!” I am using s3, CloudFront, and route 53.

Could you please help?
my site is