简体   繁体   中英

Disable server side caching ASP.net

How can I disable absolutely all caching on for an asp.net website? I have problems with asp:literal caching its values and it's annoying as hell. Don't tell me it's a bad idea to do that, since it's for a development version only. I think it's called output caching, but I might be wrong.

Have a look at the page or control in question for something like the following:

<%@ OutputCache Duration="18000" VaryByParam="none" %>

Remove the line.

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