Properti Kontrol Cache ASP


Referensi Objek Respons Lengkap

Properti CacheControl menetapkan apakah server proxy dapat menyimpan output yang dihasilkan oleh ASP atau tidak. Secara default, server proxy tidak akan menyimpan salinan cache.


Sintaksis

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.


Contoh

<%response.CacheControl="Public"%>

or

<%response.CacheControl="Private"%>

Referensi Objek Respons Lengkap