pull down to refresh
63 sats \ 3 replies \ @k00b 16 May 2022 \ parent \ on: Daily discussion thread
profile photos are done
whoa! very cool!!!
reply
It would be great to set some browser caching headers on those images, currently those seem to refetched every time - at least from what I can tell. Does S3 have a setting for that?
Does the image URL change when user uploads a new version? If yes, then you could essentially cache those forever:
cache-control: public, max-age=31536000
It would also probably be good idea to gzip (or ideally brotli) those images on response ;)
reply
Iām going to put a CDN in front of them with long expiries. We ship incrementally around here š
reply