use cache option in $resource