Thuộc tính ASP CacheControl
❮ Tham chiếu đối tượng phản hồi hoàn chỉnh
Thuộc tính CacheControl đặt liệu máy chủ proxy có thể lưu vào bộ đệm kết quả do ASP tạo ra hay không. Theo mặc định, máy chủ proxy sẽ không giữ bản sao bộ nhớ cache.
Cú pháp
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. |
Các ví dụ
<%response.CacheControl="Public"%>
or
<%response.CacheControl="Private"%>
❮ Tham chiếu đối tượng phản hồi hoàn chỉnh