简体   繁体   中英

How can I thwart Chrome's caching of jQuery.load()ed files?

I've run into this problem once before, and am hitting it again. I have a webpage that may make AHAH loads via jQuery.load() . The text that was loaded appears to stay in the cache, and the usual shift-reload is not enough: it loads the parent document but keeps its cached copy of the loaded data.

What is the best way to make sure that a page and everything loaded works? Close the page and obliterate appropriate browsing data? I've circumvented the problem this time by loading from another browser, but I wanted to know if there is any developer-friendly mode that causes updates in AHAH jQuery.load() ed data to show up.

Press F12, click on the cogwheel in the lower right corner and make sure "Disable cache" is checked. Chrome seems to only honor this setting as long as the developer tools are open.

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