extjs4 - Easiest way to ensure browser cache is cleared when debugging EXTJS 4 -
This is driving me crazy.
Every time I make a change, the browser has been loaded by the browser (the same behavior is Chrome and FF) at the time of joining JavaScript ...
ctrl + f5 There is no effect, I have to clean the browser cache manually - which is a nightmare
I have this code in my app.js:
Ext.Loader .setConfig ({capable: true, disableCaching: false}); Edit: Chicken & amp; Egg landscape:
- To set a breakpoint in FF or Chrome, you need to turn on caching (see the above code) so that the '_dc' query string parameter is not in the script file
- But then you always get a cached copy, so you do not see your changes anyway
- If you stop caching, then you do not set a breakpoint Because
- "
About: config"Go to Firefox and search forcachebrowser.cache.offline.enabletofalseSet (double click on it)- Set
network.http.use-cachetofalse- if If you use
ext-all-dev.js, setexten Sions.firebug.cache.responseLimitMore than that you can see all the sources in Firebug.
I have closed the cache breaker for the same reason. My solution is to completely stop the Firefox cache (this is a Dev machine so I really do not need it)
You may have to restart and clear the cache. After doing this, however, Firefox will load the page ( F5 ) every time you use the latest source Drag and breakpoints will be killed in firebug.
If this is not acceptable, then temporarily debugger in your code; Enter the statement which will act as a breakpoint. Keep them if s to work as a conditional breakpoint.
Comments
Post a Comment