File still exists after deleting it from the htdocs | File Manager

Website URL

(http://mzcodex.great-site.net)

Here’s the context :

I recented created a folder in htdocs named ‘Web’ and in it I had my other js and css files. The problem I am facing is when I edit the js file and saving it, the changes doesn’t apply to the website. Even if I delete the old js file from the folder, The js file somehow loads in the website. Its happening with the css files too. If the delete the file, it still somehow exists there as when I call it in the html script it loads even if I deleted it from the folders…

Please need help on how can I solve this problem!

Thanks in advanced!

Hey there!

It seems the problem you are having is caused by the browser’s cache. Try clearing your browser history. It should solve the issue.

9 Likes

Oh Thank you so much, It worked… Is there a progammical way to stop this thing to happen as the updated version of my script doesn’t work but Its working in incognito mode if that makes sense…

See this! This my normal browers :

There is a way. You can disable Cache in the Developer tools.

  1. Press F12 and it will take you to Developer tools.

  2. Head to the network tab and check the Disable cache box at the top.

8 Likes

The reason it works in the Incognito mode is that the Incognito mode won’t save any cache. As soon as you close the tab, it’ll automatically destroy the cache.

7 Likes

Or shortcut key with shift+f5 in chrome, or ctrl+f5 in firefox.

6 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.