Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: Sunshine (Distraction free social network) (sunshine.social)
2 points by 1mbsite on July 13, 2019 | hide | past | favorite | 9 comments




This is in beta and I’m still building some functionality, but I invite you to check it out in the meantime.


How come the profile picture fetcher fetches the profile picture twice every time, instead of just one?


It seems to fetch the profile picture twice every 15 minutes. No cache, no If-Modified-Since.


Images should be cached (I have this header: Cache-Control: max-age=31536000, public)


But that header is valid per client that is using sunshine.social, isn't that so? That means that every client that looks at my profile will fetch the image at least once.

The images is fetched from IP address 104.131.188.4, and it is that host – not the client – that should cache the image and only download a new copy if If-Modified-Since or eTag indicates that the image has been changed.


The first time it reads the image is to get info about it (what type of image) - the second call actually reads the file into memory and outputs it


Well, when you have read the image once to get the info then you already have the file and can “output it”. To fetch it again is just a waste of resources.


I’ll take all this feedback into account. It’s a beta app so it improves daily. For some insight all functionality you see right now was built in less than a month by only 1 person




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: