Are video files cached or federated in any way?

I want to make posts that include video, and those videos I wish to upload on my own webserver to not rely on external links or expiration dates.

But I fear for bandwith, and I want to know if the videos will be cached on the instance or if every user will be a full web request of the video (that I can of course mitigate via good compression, and/or having a dedicated CDN that won’t empty my pockets).

  • asudox@lemmy.asudox.dev
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    5 days ago

    Videos are not stored in every server. Nobody would have been able to pay for the bills if that was the case.

    The videos and images stay on the origin, and are fetched from the origin.

    Afaik admins that enable the image proxy cache only the images, not videos.

  • iso@lemy.lol
    link
    fedilink
    arrow-up
    1
    ·
    5 days ago

    This depends on the instance of the video being used. Some instances clone a copy of the video, some use proxies, and some send the link directly to the user. I don’t recommend it if you have limited bandwidth.