How to prevent Ajax/javascript result caching in browsers?

前端 未结 5 1800
遥遥无期
遥遥无期 2020-11-28 13:13

How to prevent browsers from caching Ajax results? I have and event triggered Ajax script the displays results only when the browsers data has been cleared.

Tes

5条回答
  •  时光说笑
    2020-11-28 13:44

    using jQuery you can set global ajax setting: { cache: false }. See it in jquery ajax docs

提交回复
热议问题