API's avatar image URLs are short lived
-
Andre Torrez
- State changed from new to open
I'm just going to remove the expiration entirely. No reason for us to be limiting that.
It should be done by Monday, or sooner if I can fit it in today or tomorrow.
-
Mark Paschal
Well, I think the expiration is because it's an AWS link. Don't they all have expirations? For example for me I get the URL:
I think you'd have to change it outright to something like:
http://mlkshk.com/avatars/114/profile.jpg
to remove the expiration.
-
Andre Torrez
Yeah, that's what we're doing. But we're not going to host them on the production box, just open up the /account path to world readable so we don't have to pass in keys. The URLs will be //:mlkshk-production.s3.amazonaws.com/account/114/profile.jpg
The problem is, and this is a great lesson: AWS is incredibly slow to apply changes on large paths. So while this is done in dev, I can't turn it live because S3 is still updating permissions on the thousands of files in that directory.
-
Mark Paschal
Oh, cool then. I haven't used S3 so I didn't know how that works. Thanks!
-
Andre Torrez
- State changed from open to resolved
This is fixed. Avatars don't expire. I need to give you the ability to know when a file has changed, perhaps a quick md5 value on it?
-
Mark Paschal
- Tag changed from api, avatar to profile pics, api
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.