3

I use CloudFront and ALB with AWS and my site always looks good from mobile, desktop and tablet browsers.

But in the Google mobile-friendly tool, it often doesn't have random images, css, and javascript

TEST URL: (ALB + cloudfront) (Errors on js/images/css randomly)

https://search.google.com/test/mobile-friendly?url=https%3A%2F%2Fphppointofsale.com%2F

EC2: (Never errors on my css/js, images)

https://search.google.com/test/mobile-friendly?url=https%3A%2F%2Fwebsite.blastohosting.com%2F

What could be the cause of this? I have looked and cloudfront logs and they are all 200 status and appears the requests never make it to cloudfront. My site works fine besides this test

  • Try to fetch and render in Google Search Console, See what's issue is shown there. – Rohit Dutt Nov 20 '18 at 17:51
  • looks fine and no missing resources – Chris Muench Nov 21 '18 at 14:25
  • Do you happen to use javascript/ajax to load the images when some condition is met? – Σπύρος Γούλας Nov 26 '18 at 9:21
  • No I do not use js to load images – Chris Muench Nov 26 '18 at 21:03
  • Hey, how did you fix your issue? I have the same problem. It seems google sometimes doesn't even try to load the main css file. – nacholibre Mar 13 at 0:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.