2

When I upload changes in my html partial files of AngularJS there is a cache and the old data is shown. Just after a couple of refresh actions the changes are shown.

How can I make the changes available immediately?

6
  • do you mean while you are developing and checking it in browser your browser cache's the resources ? Commented Jun 1, 2014 at 9:44
  • did you use $scope.$apply when updating scope? Commented Jun 1, 2014 at 9:44
  • 1
    Maybe this answer your question: stackoverflow.com/questions/14718826/… Commented Jun 1, 2014 at 9:46
  • I mean that case that I changed html code and uploaded it to production. It displays the old data though the uploading and just after couple of refreshes the new version is shown. Commented Jun 1, 2014 at 10:44
  • @user1279647 Someone wrote that it doesn't work. Commented Jun 1, 2014 at 10:44

1 Answer 1

2

if you are on chrome browser go to devTools F12

then click on the gear icon on the left and then tick "Disable cache(while DevTools is open)

Sign up to request clarification or add additional context in comments.

4 Comments

It's not comprehensive solution.
well as i understood it is not refreshing to the new markup in your html partial files , you need this to bypass caching while you are developing since once deployed partials markup will not change , or is the issue it is not getting the latest data from the model ?
if it is data thing then maybe it is something related to your webserver caching
No. It's not just about my browser. There is not an issue with the data from server but the static html.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.