简体   繁体   中英

304 not modified when using jquery ajax

I am encountering a 304 not modified when switching between tabs. Jquery ajax call is sent underlying. How can I resolve this problem?

Are you use Get to finish with ajax . You may try $.post or add a random parameter like this:

$.get(url,{randomKey:Math.random()+Date.parse(Date()},callback)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM