Adding a random number after the URL

前端 未结 5 2079
挽巷
挽巷 2021-01-07 02:43

I\'ve got a site which uses jQuery and Ajax to change the site content without reloading the page. The site contains content which I often change. But somehow the page gets

5条回答
  •  悲哀的现实
    2021-01-07 03:38

    If you are using jQuery's AJAX functions, try setting $.ajaxSetup( { cache: false } ) at the top of your page, and let jQuery take care of it for you.

提交回复
热议问题