Forum Moderators: open
about the problem:
-i have a html page which include some external js files
-when i made some changes in my js file the browser doesn't see this changes
-the browser execute the old code
what i try:
-i try with F5-refresh the page-nothing happen
-i try with CTRL-F5-refresh without cache-nothing happen
solution:
-when a restart the browser then it takes the modified js file so it execute the modification
but this solution is not what i need
so how can i refresh my browser in such a way that he takes teh modified .js file?
thanks
IE though can be configured to only search for newer versions of stored pages when you startup. Check this at:
Tools ¦ Internet Options ¦ General (Tab)
Temporary Internet Files... Click on [Settings]
I have it set on "Automatically" and it works fine.
Are you working behind a proxy server? In which case your proxy server could also be caching pages and when you [Refresh] you could simply be pulling the page from your proxy's cache again.
You could try and prevent the page from being cached at all with the following lines in the <head> section:
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="Expires" content="Mon, 26 Jul 1997 05:00:00 GMT">
But this would only be of benefit if your page/js changes often and of course you'd lose the speed gain of your page being cached - which in my case was the reason I wanted it cached in the first place.
i try some of your suggestion
and i find a solution in your suggestion
i set my IE:
tools/internet options/general/temp internet files/settings
i choose check for newer version of stored pages:
-every visit on the page
and this works fine!
with automatically doesn't work
maybe is not the quickliest solution but for testing is ok
thanks a lot
bye