On my page https://squareballoon.co.uk/blog I’m using CloudFront to load images from Amazon S3.
If I just use Amazon S3 directly the images all have an expiry date of an hour.
If I use CloudFront it seems to not have that issue. BUT… I think about 50% of the time the assets don’t load. Some of the assets on that page are loaded locally and they always work fine. The ones that don’t load are a 500 error.
The problem is very intermittent. But it seems pretty consistent (if you can say that), for example if I load the page 10 times at least 3-4 of them usually the assets don’t load.
Could this be because I am loading the images too quickly over and over and there’s a setting against this? Obviously, that’s an issue for a website as it could be loaded by many users.
I have spent hours trying to solve this issue, I don’t really know how to describe it well and I find AWS docs quite difficult.
What could cause it to work sometimes but not all times. I’m struggling to see a variable to troubleshoot, nothing changes when it doesn’t work.
To make things harder… the AWS console doesn’t usually load for me so I can’t login to make changes easily. I have contacted my ISP to understand this but they say it’s not them.