---
title: "💭 Why Your Backend Shouldn't Serve Files - YouTube"
description: "!https://www.youtube.com/watch?v=aybSXT9ZJ8w"
date: 2024-12-31
published: true
tags:
  - webdev
  - thought
template: link
---


<div class="embed-card embed-card-external embed-card-provider-youtube">
  <div class="embed-card-rich">
<lite-youtube videoid="aybSXT9ZJ8w" title="Why Your Backend Shouldn&#39;t Serve Files" playlabel="Play: Why Your Backend Shouldn&#39;t Serve Files"></lite-youtube>
  </div>
</div>


Lane from boot.dev madde this fantastic video about serving files on the internet.  It has me wondering if I need to rethink a few of my things that I have built.  I have a few things I am serving media from, but I have very aggressive cloudflare cache rules on them, so each file should only be uploaded about once per year.

My problem going straight out of minio right now is how do i set headers for cache control on it.  If I can't set the cache control and everything is coming out of minio this does not solve my problems.

---

I went back and played with presigned urls and you can in fact control and set response headers, this is definitely the way and I have been wrong.

!!! note

    This post is a <a href="/thoughts/" class="wikilink" data-title="Thoughts" data-description="These are generally my thoughts on a web page or some sort of url, except a rare few don&#39;t have a link. These are dual published off of my..." data-date="2024-04-01">thought</a>. It's a short note that I make
    about someone else's content online <a href="/tags/thoughts/" class="hashtag-tag" data-tag="thoughts" data-count=2 data-reading-time=3 data-reading-time-text="3 minutes">#thoughts</a>
