external javascript problem in asp.net 2.0

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!
 
E

Eliyahu Goldin

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

Eliyahu
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

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.
 
M

michaelcoleman72

The last post is correct. Clear your cache. This is a browser nugget
that haunts asp, jsp, asp.net... you name it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top