• Thorry84@feddit.nl
    link
    fedilink
    arrow-up
    0
    ·
    23 hours ago

    How is the size difference after gzip compression? Probably pretty much the same, but I wonder how large the difference is then. Since a lot of folk make sure the contents is gzipped when served to the user.

    • Olissipo@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      22 hours ago

      Even using the highest compression levels, barely any difference. Not worth it

      If I understand correctly gzip, brotli and similar are best used to compress text.

      Font files also shouldn’t be compressed. A TTF file compresses a bit, but a WOFF2 file will be even smaller than that (and WOFF2 also doesn’t compress well). So might as well use WOFF/WOFF2

      • vvvvv@lemmy.world
        link
        fedilink
        English
        arrow-up
        0
        ·
        18 hours ago

        If I understand correctly gzip, brotli and similar are best used to compress text.

        Compression algos should be used on uncompressed data. Using them on already compressed data (most video, images, music formats) is generally useless.