Is there a way to serve mapbox GL gzipped geojson files? I have style.json file that pulls multiple geojson files and it is pretty heavy.
Here is how you serve gzipped GeoJson files from CloudFront:
Make sure the
Content-Typeof the geojson files is
In CloudFront, under behavior, set
Compress Objects Automaticallyto
Make sure you invalidate the folder before checking if it works.