-1

When the server sends 304, the browser handles it automatically and the $http receives status 200. I want to handle it myself so i don't reload my view when content has not changed.

I want to do something like this:

$http.get("api/endpoint").then(function(response){
    if(response.status != 304)
        //update view with response.data
    }
    else{
        // do nothing
    }
 });
konst
  • 19
  • 6

1 Answers1

0

It seems that it is a more general issue. Here is another post about this here

konst
  • 19
  • 6