Stop jQuery .load response from being cached

前端 未结 14 1912
迷失自我
迷失自我 2020-11-22 03:54

I have the following code making a GET request on a URL:

$(\'#searchButton\').click(function() {
    $(\'#inquiry\').load(\'/portal/?f=searchBilling&pid=         


        
14条回答
  •  鱼传尺愫
    2020-11-22 05:00

    This is of particular annoyance in IE. Basically you have to send 'no-cache' HTTP headers back with your response from the server.

提交回复
热议问题