Not signed in (Sign In)

API

Tips & Tricks: Bypassing browser cache on AJAX calls

Bottom of Page

  1.  
  1.  

    Oftentimes, browsers can cache aggressively, even storing the XML responses to AJAX requests, preventing developers from requesting fresh data. Older versions of Internet Explorer are notoriously bad at this.

    Developers usually get around this by appending a random param key/value pair to their request URI, such that

    https://api.myintervals.com/task/

    becomes

    https://api.myintervals.com/task/?time=123456789

    Unfortunately, this strategy doesn't work with the Intervals API, as it will ordinarily reject any request param not explicitly listed in the resource's documentation. A trick to getting around this is to add a parameter called rnd (and you can use any number as the value). This will trick the browser into making a new request, and the API will strip it out and not parse it as a list filter. To use it, your requests should look like this:

    https://api.myintervals.com/task/?rnd=12334789

Comments are closed.
For more Intervals help documentation, please visit help.myintervals.com