xmlhttprequest: problems when adding params to a "GET" query

Hello,

I use xmlhttprequest to get the newest version number of my gadget from server, and then add a link for download if it's newer than installed version.
I never used xmlhttprequest before, but it's pretty simple. In "GET" and asychronous mode, works fine.
But the result is cached, so I just added a timestamp parameter to query string to avoid caching result. And it doesn't work any more. After several tests, I found that with URL "http://www.mywebsite.com/mygadgetversion.xml"
it works great, but with
"http://www.mywebsite.com/mygadgetversion.xml test=1"
xmlhttprequest doesn't manage response any more, staying in "1" status, however my server sent the same response.

Is there any known issue about this, or maybe I did something wrong

Thank you.
Lo


Answer this question

xmlhttprequest: problems when adding params to a "GET" query

  • Pooja Katiyar

    Thanks, I tried already. Client side (setRequestHeader) didn't work for me, and I can't change headers because it's a static file for server load matters.

    I changed my request in synchronous mode, and it works with timestamp parameter. Strange.

    Lo


  • Evan Hennis

    Have a look at this it looks like you can turn the caching off.

  • xmlhttprequest: problems when adding params to a "GET" query