Archive for January 2011
As I seem to use this trick quite often and I keep forgetting the exact details on how to implement it, I thought it would be good to document this.
Using jQuery, I often make ansynchronous GET requests to a custom ASHX handler in SharePoint’s _layouts folder which returns some data that I want to display. This data is always dynamic, but sometimes the browser tries to cache the results from the previous request, so you might not get the response you expected.
var url = '/_layouts/MyProject/MyHandler.ashx?unique=' + new Date().getTime();