probably has something to do with the fact that you are telling it to reload itself, and when it does, you are telling it to reload itself, and when it does, you are telling it to reload itself, and when it does, you are telling it to reload itself, and when it does, you are telling it to reload itself, and when it does, you are . . .
pops a 404 error everytime. If you are doing this as part of a conditional statement, make sure that when the page reloads, the same conditions are not met. If they are, you present a loop to the server, it doesn't like you anymore, etc., etc..
HTH
Jim