Làm cách nào chúng ta có thể ngăn trình duyệt caching một trang ASPX?

{{FormatNumbertoThousand(model.total_like)}} lượt thích
219 lượt xem

Chúng ta có thể SetNoStore trên HttpCachePolicy object được hiển thị bởi thuộc tính Cache của đối tượng Response:

Response.Cache.SetNoStore();
Response.Write(DateTime.Now.ToLongTimeString());
{{login.error}}