- Newest
- Most votes
- Most comments
This issue with your logo periodically disappearing on your website hosted on AWS is likely related to one of several common problems with static content delivery:
-
Image URL Configuration Issues: Your website might be switching between using your domain name and a static IP address for content URLs. When the system reverts to using the IP address instead of the domain name, this can cause images to break due to SSL certificate issues or mixed content problems.
-
Caching Problems: CloudFront or browser caching might be serving outdated versions of your site that don't include the logo properly.
-
DNS Configuration: If your DNS settings are not consistently pointing to the correct CloudFront distribution or if you have multiple distributions with the same alternate domain names, this could cause intermittent issues.
-
WordPress-specific Issues: If you're using WordPress, there might be a plugin or theme function that's periodically changing the URL settings in your database.
The fact that logging into the admin area temporarily fixes the issue suggests that your CMS might be refreshing the image paths or clearing certain caches when you authenticate.
Here are some troubleshooting steps:
-
Check your website's URL settings to ensure they consistently use your domain name rather than IP addresses.
-
Review your CloudFront distribution settings to confirm the correct alternate domain names are configured.
-
If you recently migrated from one CloudFront distribution to another, verify that the alternate domain name is only configured on the new distribution.
-
Check for any plugins or scheduled tasks that might be modifying your database or image URLs.
-
Implement a proper invalidation strategy for your CloudFront distribution when you make changes.
-
Use browser developer tools to inspect the broken image URL when the issue occurs to identify exactly what URL is being used when the logo disappears.
This periodic issue is common with AWS-hosted websites and typically relates to how the content URLs are being generated and cached rather than actual file permissions or missing files.
Sources
The images on my wordpress website hosted on lightsail keep disappearing | AWS re:Post
Static site not displaying updates even if cloudfront distribution url is showing changes | AWS re:Post
answered a year ago
Relevant content
asked 4 years ago
