ăăă°ă§äœżăŁăŠă Amazon S3 ăźăă±ăăăźç»ćăźă»ăšăă©ăăăčăŁăŠç©șăăĄă€ă«ă«ăăŠăăŸăŁăâŠă S3 ă«äžăăŁăŠăăç»ćă Cache-Control ăăăăŒăä»äžăăăŠăăȘăăźă§ăăčăŠăźç»ćăăĄă€ă«ă« Cache-Control ăăăăŒăä»äžăăăăšăăŠăźäșæ ă ăŁăăăăĄă€ă«äžèŠ§ăććŸă㊠AWS SDK Ruby 㧠Cache-Control ă ăä»äžăăă€ăăă ăŁăăźă«ăăĄă€ă«ăăźăăźăç©șă§äžæžăăăŠăăŸăŁăŠçĄăšăȘăŁăă
性ăăæäœăăăȘăăšæăŁăŠäșćă«ăăăŻăąăăăćăŁăŠăăȘăăŁăïŒ S3 ă«äžăăŠăăă°ćźćżă ăšæăŁăŠæ„ćžžăźăăăŻăąăăăèĄăŁăŠăăȘăăŁăăăčăŒăăŒăąăăćçăȘăăąăăăăŒăăçŽăăăšăŻćŻèœă ăă©ăăăŁăăăŁăšăăăąăăĄăŒă·ă§ăł Gif ăšăăăăă°ăźć ćźčă«ćăă㊠OmniGraffle ă§æăăç»ćăŻćșæŹçă«ăŻć ăźăăĄă€ă«ăæźăŁăŠăȘăăŠć ă«æ»ăăăšăă§ăăȘăăŁăâŠă
CDN ă«æźăŁăŠăăăăźăšăăŒă«ă«ă§ăăŁăă·ă„ăăăŠăăăăźăæąăăăă 500 ăăĄă€ă«ä»„äžă怱ăăăŠăăŸăŁăăă€ăăâŠă
ç»ćăźćčăŁéŁăłăéć»ă«ăäœćăè”·ăăŁăŠăăăăŹăłăżă«ă”ăŒăăŒăźéćźłă§æ¶ăăăăżăŒăłăăăŁăăă©ăèȘćăźăăčă§æ¶ăăŠăăŸăăăżăŒăłăć€ăăèȘćăäžçȘ俥çšăȘăăȘăăźă§ç»ćăŻăăă«çźĄçăăŠăăăăźăäžçȘă ăȘăšèș«ă«ăăżăŠæăŁăâŠăăšăăăă S3 ăă±ăăăźăăŒăžă§ăłăłăłăăăŒă«ăæćčă«ăăăăšæăăŸăâŠ
èżœèš
AWS SDK Ruby ă§ăźæŁăă Cache-Control ăăăăŒä»äžăźä»æčăŻä»„äžă ăŁăă
object.copy_from(object, cache_control: 'max-age=2592000,s-maxage=31536000', metadata_directive: "REPLACE")
#copy_from
ăźćŒæ°ă« medata_directive: "REPLACE"
ăæžĄăćż
èŠăăăă
đ đ»ââïžđ đ»ââïžđ đ»ââïžä»„äžăŻ NG ăȘăźă§æłšæăăăă â ïžâ ïžâ ïž
object.put(cache_control: 'max-age=2592000,s-maxage=31536000')
ăăăăăšăăĄă€ă«ăź body ăç©șă«ăȘăăŸă đłđłđł