Can I gzip images or svg files?


Can I gzip images or svg files, and will Fastly gzip these for me?


You can dynamically gzip content based on file extension or content-type. Check out our article on how to enable automatic gzipping for more information.


Note that there is no gain in compressing already compressed image types, like GIF, JPEG or WebP.

SVG, however, being completely text based, compresses very well!