Skip to content

Conversation

@dmethvin
Copy link
Member

Fixes gh-1732

src/ajax.js Outdated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The final value of cacheURL only matters if s.ifModified is true, but I think it should include _ parameters that come from the user rather than us. What if we updated like so?

uncached = s.url.slice( cacheURL.length );

if ( s.data ) {
    cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
    
}

if ( s.cache === false ) {
    cacheURL = cacheURL.replace( rts, "" );
    uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + (nonce++) + uncached;
}

s.url = cacheURL + uncached;

@markelog
Copy link
Member

/cc @jaubourg

@mgol
Copy link
Member

mgol commented Nov 17, 2015

@dmethvin When you submit a PR fixing an issue, please add the "Has Pull Request" label to the issue.

@dmethvin
Copy link
Member Author

@mzgol I can almost guarantee you that I will continue to forget. It seems that any PR containing "Fixes #xxxx" will put a reference in the issue so it can be detected that way. I guess we could have a bot auto-tag it?

@mgol
Copy link
Member

mgol commented Nov 18, 2015

@dmethvin That's the problem with automation that's not automated, isn't it? 😄

I guess we could have a bot auto-tag it?

Sounds like a good idea.

@dmethvin dmethvin closed this in e077ffb Dec 1, 2015
@dmethvin dmethvin deleted the 1732-ajax-hash branch May 24, 2016 19:07
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

5 participants