ASP CacheControlคุณสมบัติ
❮ การอ้างอิงออบเจ็กต์การตอบสนองที่สมบูรณ์
คุณสมบัติ CacheControl ตั้งค่าว่าพร็อกซีเซิร์ฟเวอร์สามารถแคชเอาต์พุตที่สร้างโดย ASP ได้หรือไม่ ตามค่าเริ่มต้น พร็อกซีเซิร์ฟเวอร์จะไม่เก็บสำเนาแคชไว้
ไวยากรณ์
response.CacheControl[=control_header]
Parameter | Description |
---|---|
control_header | A cache control header that can be set to "Public" or
"Private".
Private is default and indicates that only private caches may cache this page. Proxy servers will not cache pages with this setting. Public indicates public caches. Proxy servers will cache pages with this setting. |
ตัวอย่าง
<%response.CacheControl="Public"%>
or
<%response.CacheControl="Private"%>
❮ การอ้างอิงออบเจ็กต์การตอบสนองที่สมบูรณ์