• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Amazon Web Services(Cloud Front) and Avatars

robdog

Well-known member
#1
Quick question, and sorry if this is posted in the wrong forum. Anyways, I have recently switched from MaxCDN to Amazon Web Services. The one thing I did notice is that the query string is NOT taken into account for busting the cache on images. This is proving to be a problem when people update their avatars.

Is there a way to move the query string cache busting into the filename? Or has anyone figured out a way to get this to work properly?

Thanks.
 

robdog

Well-known member
#3
Avatars are appended with a date string, which changes ech time the avatar is uploaded.

This is mine for example: http://xenforo.com/community/data/avatars/l/0/521.jpg?1321091944
Yes, I see the query string being used as a "cache buster", but this is not supported by Amazon Web Services. (Cloud Front using the query string to bust the cache)

I was wondering if we could be the query string time stamp into the filename(ie: http://xenforo.com/community/data/avatars/l/0/521_1321091944.jpg)? Or if someone found a way to get the query string to work with AWS.
 

melbo

Well-known member
#6
Has anyone sorted this out? Having the same problem.
Members avatars are showing as different depending on the page display.
 

melbo

Well-known member
#8
I think I fixed it by telling my Distribution > Behaviors > Default > 'Forward Query Strings' > Yes
This seems to allow AWS to see the ? 12345678 date stamp behind the url. Within ~15 minutes, all of my problems cleared but I will closely monitor this to see if it introduces any other abnormalities.