has recently been working on a project based on react family buckets, which runs well and Git into the branch (the code in the branch is correct).
one day, the running project can display a normal page, and then I don"t know if something has been modified. after refreshing, the home page becomes a code-only page. I took a look at network, display 304 without loading js and css styles.
I"ve been looking for reasons for not finding bug, for a long time, so I just pull the code back, and the problem still occurs. I use my own computer here.
back to the company, the company computer code is also pulled directly from the Git, can be run, without any problems.
later saw on the Internet that 304would OK after cleaning the cache of their computer browsers because of a cache problem.
later, the above problem also occurred when the company"s computer project was running, and this problem still occurred after cleaning up the browser cache. So pull it back to the branch, but it still doesn"t work. It is not possible to delete the project directly and pull another one.
so I know that the code should not have bug, but I don"t understand why this happens. Solution, thank you!
now using my own computer, there is something wrong with the company"s computer running project, so I can"t take a screenshot. The page is a string of html code on the main page, and the 304Jing CSS and js shown by network are not loaded.