lib/assets/javascripts/up/proxy.js.coffee in upjs-rails-0.7.2 vs lib/assets/javascripts/up/proxy.js.coffee in upjs-rails-0.7.3

- old
+ new

@@ -46,12 +46,13 @@ $waitingLink = null delayTimer = null cacheKey = (request) -> normalizeRequest(request) - [ request.url, - request.method, + [ request.url, + request.method, + request.data, request.selector ].join('|') trim = -> keys = u.keys(cache) @@ -101,10 +102,10 @@ ### ajax = (options) -> forceCache = u.castsToTrue(options.cache) ignoreCache = u.castsToFalse(options.cache) - request = u.only(options, 'url', 'method', 'selector', '_normalized') + request = u.only(options, 'url', 'method', 'data', 'selector', '_normalized') # We don't cache non-GET responses unless `options.cache` # is explicitly set to `true`. if !isIdempotent(request) && !forceCache clear()