amazon web services - AWS CloudFront Edge Cache Expiry Logic -
users upload profile pics website. path "user 150" is:
www.website.com/pics/150.jpg
if user changes profile pic, old 1 stuck in edge cache until expiry. how can load new profile pic edge cache after uploaded?
the easiest way make sure uploads have random key filename. (something uuid)
instead of constructing path file when needed, store entire path in relation user.
Comments
Post a Comment