Home / FAQ / ASP.NET / Output Caching / How to make a page expire immediately in such a way that a warning message ‘This page has expired.’appears
Try the following:
<%@ OutputCache location='none' %>
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