Not serving up-to-date Javascript

My server is not serving updated JS files; the ones served are not the ones in the code but old ones. I can make changes to HTML okay, but not to JS, so this means the server is responding since I seem some changes. I added a log to test. Then looking in the network tab, I can see the code of the log is not there. I’ve restarted the app itself as well as Nginx with service nginx restart to no avail (many many times)

I know the reset works because the html will update after restart but the JS will not.

I know this is a Digital Ocean problem because I fixed the app locally and it works. I even deleted the app from the server, and cloned a new version with the changes, booted this up but STILL the problem persists.

It says from memory cache in the dev tools but I don’t know what this means. How do I clear the server cache if such a thing exists? How can this persist across deletion of the app?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I have recently got to know about the new Javascript program that has to game me access to the Netgear router login page which is really very helpful. You must always keep it up to date.

This comment has been deleted