This project is archived and is in readonly mode.

#782 ✓resolved
Chris Buckley noCache fails with non-urlEncoded data

Reported by Chris Buckley | November 11th, 2009 @ 04:49 PM | in 1.3.0 rc2 (closed)

When using Request with options {method: 'post', noCache: true, urlEncoded: false} and passing data for the request body (JSON, say), the noCache parameter gets prepended to the data as if they were urlEncoded.

Instead of prepending the noCache parameter to the data, could it be appended to the URL as part of the GET parameters, regardless of the method?

if (this.options.noCache){
    var noCache = 'noCache=' + new Date().getTime();
    url = url + (url.contains('?') ? '&' : '?') + noCache;

I appreciate that things will change in 1.3 but this would be a useful fix for 1.2.5.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins