Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS disable partial caching on dev machine

I have problem with caching partials in AngularJS.

In my HTML page I have:

<body>
 <div ng-view></div>
<body>

where my partials are loaded.

When I change HTML code in my partial, browser still load old data.

Is there any workaround?

like image 644
Mennion Avatar asked Oct 10 '22 09:10

Mennion


1 Answers

For Development you can also deactivate the browser cache - In Chrome Dev Tools on the bottom right click on the gear and tick the option

Disable cache (while DevTools is open)

Update: In Firefox there is the same option in Debugger -> Settings -> Advanced Section (checked for Version 33)

Update 2: Although this option appears in Firefox some report it doesn't work. I suggest using firebug and following hadaytullah answer.

like image 200
LukeSolar Avatar answered Oct 11 '22 21:10

LukeSolar