external javascript problem in asp.net 2.0

  • Thread starter Thread starter I.g.o.r.
  • Start date Start date
I

I.g.o.r.

Hello!

I run into a very anoying problem in asp.net 2.0. I have external JScript file
included in some aspx through <script> tag; In my solution .js file is placed in
custom folder named skripta. Everything is ok when I add new .js file containing
some code. But when I add some new functions to .js (everything doing through visual
studio 2005 editor) they seam to be invisible for the aspx page in which the
external script is referenced. New code added to file just seams to not load as if
it is somewhere old cached file, and it wont update with new data.

After I copy all the code, with the new function added to a new .js file, and then
referenced it instead, it works fine. Where does ASP.NET 2.0 cache .js files?

What's happening, could someone explain , or comment if they had similar experience?

Thanks!
 
Saving the file with new date/time should make browser refresh it. Check
your client and server time setting.

Eliyahu
 
It's not ASP.NET that caches the js file, but the browser. Use ctrl+F5
to try to force the browser to reload all files when you update. If that
doesn't help, empty the browser cache.
 
The last post is correct. Clear your cache. This is a browser nugget
that haunts asp, jsp, asp.net... you name it.
 
Back
Top