images & icons not loading randomly and sometimes 404 page loading in SWA

NEERAJ SINGH RAJPUT 0 Reputation points
2025-01-15T09:39:10.4666667+00:00

whenever I loads my website some of the images does not loads, and if I refreshes then other images may crash and some time even the page crashes and lands me to 404 page.
I've already deployed many website on azure but didn't got this issue before

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,056 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Laxman Reddy Revuri 1,755 Reputation points Microsoft Vendor
    2025-01-17T16:42:26.95+00:00

    Hi @NEERAJ SINGH RAJPUT
    Thanks for the question and using MS Q&A platform.
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer

    Ask:  images & icons not loading randomly and sometimes 404 page loading in SWA

    Solution:I don't know why but it is working correctly now. But, the issue was getting 404 for images, icons or site and on refresh I was able to get that 404 thing which ever it is and sometimes it does required multiple refreshes or force refresh(ctrl+shift+r). But thankfully issue has been already sorted automatically.
     Please don’t forget to Accept Answer and Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members. 


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.