• dan@upvote.au
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    Are you sure the caching headers your server is sending for those images are correct? If your server is telling the client to not cache the images, it’ll hit the URL again every time.

    If the image at a particular URL will never change (for example, if your build system inserts a hash into the file name), you can use a far-future expires header to tell clients to cache it indefinitely (e.g. expires max in Nginx).

    • elgordino@fedia.io
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      Thanks for the suggestion, turns out there are no cache headers on these images. They indeed never change, I’ll try that update. Thanks again