Code only works when you restart the PC

1

I'm creating an application mostly in PHP, and it occurred a few times when making a call in Java, JQuery or CSS and sometimes even another page in PHP and it does not work as it should.

I ran the code and everything was ok. So I restart the PC once or twice and the code works perfectly.

Does anyone know why?

    
asked by anonymous 26.01.2018 / 12:57

1 answer

2

It happened to me something similar, was developing a web page for my entire TCC in Javascript, when publishing for test, realized that there was an error, corrected the same and updated the page and nothing ... Nor restarting. So I told my friends to test on his computers and I was out of error.

So it's very likely that your error is actually a 'bug' in the browser that is saving JavaScript and CSS in the cache.

Probable Solutions:
1) Restart only the server
2) Clear your browser cache (more recommended)
3) Use anonymous tab

    
26.01.2018 / 19:29