How to disable cache in InternetExplorer 8

How to disable cache in IE8? We are developing Javascript and testing it in IE8, but we need to clear the cache every time we make changes to Javascript files.

+42
javascript internet-explorer caching
May 03 '10 at 2:08
source share
10 answers

Go to Internet Options . On the General tab , in the View History section, click Settings . Select " Every time you visit a webpage ).

This does not "disable" the cache as such, but it should fix your main problem - JS files should be reloaded every time.

+65
May 03 '10 at 2:11 a.m.
source share

Ctrl + F5 A full page refresh should occur, including all this cached javascript.

Sometimes you still need to clear the cache, because even Ctrl + F5 will not work, for reasons that are not dependent on IE, it cannot even get an β€œupdate” in 100% of cases.

+16
May 03 '10 at 2:09 a.m.
source share

If this fails, a random parameter in the query line will do this:

index.html? A = 346456

+10
May 03 '10 at 2:11
source share

Download JavaScript this way.

<html> ... <script type="text/javascript"> document.write('<script src="yourscript.js?'+Math.random()+'"></script>'); </script> ... </html> 

Edit: If this is not obvious, delete this code as soon as you go into production!

+10
May 03 '10 at 13:19
source share

To disable the browser cache. Follow the instructions below:

MS IE

  • From the menu, select β€œTools” for IE5 or β€œView” for IE4
  • select "Internet Options"
  • under "Temporary Internet files" click "Settings"
  • select "Each page visit" for "Check for new versions of saved pages" save settings I hope this can help, please check
+5
May 03 '10 at 4:20
source share

press "Fn F12" to open the developer tools

click cache

select "Always update from server"

Each time you update, it should clear the cache, but there is also a clear cache for quick access from the cache menu or shortcuts that are active when the dev tools open.

* Note. You must leave the developer tools window open, it does not have to be in front, but it must remain open to save the cache.

+4
Mar 22 '13 at 17:42
source share

Ctrl + Shift + Del will open the "Clear Private Data" dialog box (or select it from the "Security" menu). Remove everything except the first two items to clear only the cache.

You do not need to clear the cache. If you access your js files through a web server (e.g. IIS running locally), the usual cache management mechanisms should do the trick. If they do not, Ctrl + F5 usually fixes the problem.

+3
May 03 '10 at 2:48
source share

If your javascript files are served by exclusivley from a subdirectory, you can enable immediate expiration for this directory in IIS. I recently ran into this issue serving content from a subdirectory, and it was the fastest and easiest solution I found.

+2
Jun 01 2018-11-11T00:
source share

Open the IE debugging tools (F12), Cache in the menu and always select the update from the server. This means that you need to disable debugging tools.

+1
Jan 09 '13 at 13:26
source share

It may be easier not to update the browser, but simply rename the js files (and css). This is what worked for me ... as the server didn't like the random number after the .js file

0
Apr 09 '11 at 17:45
source share



All Articles