Compress content before caching

Compress HTML, SVG, and other compressible formats at the edge and store and serve both compressed and uncompressed versions.

VCL

Use this solution in your VCL service (click RUN below to test this solution or clone it to make changes):