Skip to content

Commit

Permalink
Merge pull request #2 from davidcollom/successfull_only
Browse files Browse the repository at this point in the history
Allow only successful requests to be cached
  • Loading branch information
microadam committed Oct 22, 2012
2 parents c9d8186 + 65009e3 commit d77a677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ux/proxy/ProxyCache.js
Expand Up @@ -145,7 +145,7 @@ Ext.define('Ext.ux.proxy.ProxyCache', {
* @param {Object} scope Scope for the callback function
*/
processResponse: function(success, operation, request, response, callback, scope) {
this.addToCache(request, response);
if(success) { this.addToCache(request, response); }
},

/**
Expand Down

0 comments on commit d77a677

Please sign in to comment.