Home » FAQ » ASP.NET » Output Caching » How to prevent client Cache? I want every client request get sent to the server even if it’s behind a proxy server and for any browser setting.
You can use tag
<%@ OutputCache Duration='0' Location='None' VaryByParam='none' %>
or
VB.NET
Response.Cache.SetCacheability(HttpCacheability.NoCache)
C#
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with