Live data from Hacker News

Ask HN: Where do you store images for your static site?

news.ycombinator.com

11–12 of 12 posts

Re: Ask HN: Where do you store images for your static site?

#12
post #8

> God forbid that the solution is committing binary images to the Git repository. Where does the misconception that that's somehow a problem stem from? In 30 years of having web sites, that approach has invariably served me well.

From what I read and experienced, it makes the size of the Git repository much bigger than it should be with how Git tries to keep copies of old binary files (specifically the data and hash) since it cannot diff those unlike plaintext. You eventually have cache of the old files in the repo if you're not deliberate with setting --depth when cloning.

> From what I read and experienced, it makes the size of the Git repository much bigger than it should be...

Of course, it's a trade-off, but how is that particular one more painful than being at the whims of (and paying for) a third-party provider for something as mundane as static image files?

Post reply on HN