Cannot see changes made to aspx
I'm trying to edit an aspx page...mainly javascript, and I randomly see changes that I've made when refreshing.
I'm using jquery, but I'm not sure that jquery is the culprit here.
For example. If I add a simple alert("hello"); in the page I'm calling, I do not see it take place until I have clea开发者_C百科red all my temp files and cache, closed my browser opened back up...and even then, sometimes, I still don't see my changes.
Any ideas?
Do a Ctrl+F5 to force a full refresh, this will make your scripts reload. IE likes to hold onto things...usually in a way that doesn't make any sense of obey any rules.
Alternatively, set no cache on the server, like this:
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Or in the head of the page html, like this:
<meta http-equiv="pragma" content="no-cache"/>
you can do several things that will help you to find the issue
- Using Firebug Check for any JavaScript errors
- To be sure of using the same file hit Ctrl + A to select all and then hit Del, save the file and check if page is empty.
- Hit Ctrl + F5 to refresh browsers cache
- Dont use alert("something") to debug, you can use a debugger; line with FireBug.
精彩评论