The cacheControlMode attribute can be one of the following possible values.ĭoes not add a Cache-Control or Expires header to the response.Īdds a Cache-Control: no-cache header to the response.Īdds a Cache-Control: max-age= header to the response based on the value specified in the CacheControlMaxAge attribute.Īdds an Expires: header to the response based on the date specified in the httpExpires attribute. Specifies the mode to use for client caching. Specifies the maximum age (in seconds) of the cache control value. Specifies custom HTTP 1.1 cache control directives. In the Set Common HTTP Response Headers dialog box, check the box to expire Web content, select Immediately, and then click OK. How to disable caching for a Web site or application In the Set Common HTTP Response Headers dialog box, check the box to expire Web content, select the option to expire after a specific interval or at a specific time, and then click OK. In the HTTP Response Headers pane, click Set Common Headers. In the Home pane, double-click HTTP Response Headers. In the Connections pane, go to the site, application, or directory for which you want to disable caching. Double-click Administrative Tools, and then double-click Internet Information Services (IIS) Manager.On the taskbar, click Start, and then click Control Panel.If you are using Windows Vista or Windows 7: On the taskbar, click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.If you are using Windows Server 2008 or Windows Server 2008 R2: Click Administrative Tools, and then double-click Internet Information Services (IIS) Manager.Hold down the Windows key, press the letter X, and then click Control Panel.If you are using Windows 8 or Windows 8.1: On the taskbar, click Server Manager, click Tools, and then click Internet Information Services (IIS) Manager.If you are using Windows Server 2012 or Windows Server 2012 R2: Open Internet Information Services (IIS) Manager: How To How to configure a cache expiration date for a Web site or application The element of the element is included in the default installation of IIS 7 and later. The element replaces the following IIS 6.0 metabase properties: The element of the element was introduced in IIS 7.0. The setEtag attribute was added to specify whether the HTTP ETag header is calculated and set. The element was not modified in IIS 10.0. RFC 2616 - "Hypertext Transfer Protocol - HTTP/1.1".RFC 1123 - "Requirements for Internet Hosts - Application and Support".To use the cacheControlMaxAge attribute, you need to set the value of the cacheControlMode attribute to UseMaxAge.įor more information on HTTP caching headers and date/time formats, see the following Request For Comments (RFC) articles:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |