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
  • 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)

    1. " About: config "Go to Firefox and search for cache
    2. browser.cache.offline.enable to false Set (double click on it)
    3. Set network.http.use-cache to false
    4. if If you use ext-all-dev.js , set exten Sions.firebug.cache.responseLimit More than that you can see all the sources in Firebug.

    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

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

asp.net - MVC [HandleError] HandleErrorAttribute called twice when using global logging -