Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refresh javascript when running
Message
From
16/07/2009 13:43:40
 
 
To
16/07/2009 11:03:09
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Application:
Web
Miscellaneous
Thread ID:
01412716
Message ID:
01412774
Views:
27
>Hi all,
>
>I am sure this has been discussed before but if I get an error in my javascript code on a page and I change it then run again the change is not reflected. I get the same error as if I never changed it and it shows code in the error which is commented out. What do I need to do to cause my changes to be refreshed? I have stopped the development server so it has to be restarted and I have rebuilt the project but neither do any good.

Hi,
IIRC the server won't cache anything unless specifically requested (I assume this is true of the built-in development server as well - wouldn't make much sense if not) so the cacheing is probably on the browser. There are several examples around suggesting ways of preventing this via metadata. Something like:
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
(Untested)
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform