ASP hết hạn
❮ Tham chiếu đối tượng phản hồi hoàn chỉnh
Thuộc tính ExpiresAbsolute đặt ngày và giờ khi một trang được lưu trong bộ nhớ cache trên trình duyệt sẽ hết hạn. Nếu người dùng quay lại cùng một trang trước ngày / giờ này, phiên bản đã lưu trong bộ nhớ cache sẽ được hiển thị.
Cú pháp
response.ExpiresAbsolute[=[date][time]]
Parameter | Description |
---|---|
date | Specifies the date on which the page will expire.
If this parameter is not specified, the page will expire at the specified time on the day that the script is run. |
time | Specifies the time at which the page will expire.
If this parameter is not specified, the page will expire at midnight of the specified day. |
Các ví dụ
Đoạn mã sau cho biết rằng trang sẽ hết hạn vào lúc 4:00 chiều ngày 11 tháng 10 năm 2012:
<%response.ExpiresAbsolute=#October 11,2012 16:00:00#%>
❮ Tham chiếu đối tượng phản hồi hoàn chỉnh