Favicon on AWS S3

2019-07-31 17:38发布

问题:

Can I host my favicon icon and other assets (apple icon, windows tile) on S3/Cloudfront or do they need to be in the root of my website?

If they can be on S3/Cloudfront do I need any different code to implement?

回答1:

You should just store your favicon in your root. Other assets can be stored in S3. As far as needing new code that's up to you. For simplicities sake you can generate a URL to the item in s3 and load them on an HTML page as you normally would.