Permalink
Browse files

Allow only successful requests to be cached

  • Loading branch information...
1 parent c9d8186 commit 65009e36d5658798d7759127bdb7443084580a17 David Collom committed Oct 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 ux/proxy/ProxyCache.js
View
@@ -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); }
},
/**

0 comments on commit 65009e3

Please sign in to comment.