ASP หมดอายุคุณสมบัติ แน่นอน
❮ การอ้างอิงออบเจ็กต์การตอบสนองที่สมบูรณ์
คุณสมบัติ ExpiresAbsolute ตั้งค่าวันที่และเวลาที่เพจที่แคชไว้บนเบราว์เซอร์จะหมดอายุ หากผู้ใช้กลับมาที่หน้าเดิมก่อนวันที่/เวลานี้ เวอร์ชันแคชจะแสดงขึ้น
ไวยากรณ์
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. |
ตัวอย่าง
รหัสต่อไปนี้ระบุว่าหน้าจะหมดอายุเวลา 16.00 น. ของวันที่ 11 ตุลาคม 2555:
<%response.ExpiresAbsolute=#October 11,2012 16:00:00#%>
❮ การอ้างอิงออบเจ็กต์การตอบสนองที่สมบูรณ์