HttpCacheability 列舉
定義
提供用以設定 Cache-Control
HTTP 標頭的列舉值。Provides enumerated values that are used to set the Cache-Control
HTTP header.
public enum class HttpCacheability
public enum HttpCacheability
type HttpCacheability =
Public Enum HttpCacheability
- 繼承
欄位
NoCache | 1 | 設定 |
Private | 2 | 預設值。Default value. 設定 |
Public | 4 | 設定 |
Server | 3 | 指示回應只在原始伺服器進行快取。Specifies that the response is cached only at the origin server. 與 NoCache 選項相似。Similar to the NoCache option. 用戶端會收到 |
ServerAndNoCache | 3 | 套用 Server 和 NoCache 設定,指出在伺服器上快取內容,但明確拒絕所有其他項的快取回應能力。Applies the settings of both Server and NoCache to indicate that the content is cached at the server but all others are explicitly denied the ability to cache the response. |
ServerAndPrivate | 5 | 指示只能在伺服器和用戶端上快取回應。Indicates that the response is cached at the server and at the client but nowhere else. Proxy 伺服器不能快取回應。Proxy servers are not allowed to cache the response. |
備註
如需詳細資訊,請移至 全球資訊網協會 (W3C) 網站上的 RFC 2616:超文字傳輸通訊協定--HTTP/1.1。For more information, go to RFC 2616: Hypertext Transfer Protocol -- HTTP/1.1, on the World Wide Web Consortium (W3C) Web site. 尤其是,如需完整的詳細資訊,請參閱「快取-控制」14.9 一節,以及「在 HTTP 中快取」第13節。In particular, for complete details, see Section 14.9 "Cache-Control" and Section 13, "Caching in HTTP."
注意
NoCache
不會傳送一般 HTTP 1.0 要求指示詞 Pragma: no-cache
。NoCache
does not send the common HTTP 1.0 request directive Pragma: no-cache
.