If any devs have tricks to limit data-out, LMK. I am already compressing images and using thumbnails to view.

Reply to this note

Please Login to reply.

Discussion

Using ETags?

Never heard of them, looking now. Will it help?

I don't know what you are using for hosting or caching but yes, most browsers honor ETags for cache control to improve performance by not redownloading if they already have.

Ok, so basically just some html code. Even if a few support it, will still help.

Was also thinking to compress more. I’m way too generous keeping max size at 1MB per jpg, none for png or gif…. Most people probably only need 200-500k for what this free purpose. Save uncompressed for a paid account..

I had a feeling this would be your biggest expense. I always make sure to compress my animated GIF images as much as possible. It’s a pretty inefficient format as it is. Are you also scaling down the originals?

Not touching the gifs.. I need to find a new compressor :)

Maybe increase the cache ttl?

Probably wouldn’t change much tho. Best thing to do is just maximize compression

Oh thanks, didn’t know I could do that, let me look into it.

Is file expiration a future option? Could limit cost of data out? Would that provide more “privacy” be default?

I’m not smart enough to think through if “expiration” is default and free or if it’s value and premium.. I’ll stay in my lane now

No, you gave me a great idea, thanks

Please always feel free to leave your lane in nostr land :)

It is not, ideally we keep track of every single file link for future reference.. you gave me an idea though, maybe I just compress the he’ll out of everything older than ‘xx’ months.. File and content is still there, just like 20k instead of a meg, I like the idea 👊

Assuming these images are stored on S3 and delivered via CloudFront, how about setting a policy on the S3 bucket serving these images to automatically move old images to S3 infrequent access or glacier tiers?

Look at egress costs at your various hops. Consider geolocating data by using a CDN if you’re not already.

I’m using CDN, it is suppose to be helping!