Configuring asp template caching iis 7




















This browser is no longer supported. Download Microsoft Edge More info. Contents Exit focus mode. Please rate your experience Yes No. Any additional feedback? Note You must be sure to set the commit parameter to apphost when you use AppCmd. In this article. Optional string attribute. Optional Boolean attribute. Specifies whether type libraries are cached. The cache is also integrated with the Http. Between these two categories is semi-dynamic content.

Imagine a dynamic ASP. NET page that executes a database query. There is no reason to execute this query on every request if the underlying database tables change infrequently. IIS automatically caches static content such as HTML pages, images, and style sheets , since these types of content do not change from request to request. The IIS output caching feature targets semi-dynamic content.

It lets you cache static responses for dynamic requests and increase scalability. Note that not every dynamic page can take advantage of the output cache. Pages that are highly personalized such as shopping cart or e-commerce transactions are not good candidates because the dynamic output is not likely to be requested repeatedly, and the memory used to cache the content would be wasted.

The best candidates for the output cache are pages which generate data dynamically but are not likely to change from request to request based on the URL or the header information. For example, photo gallery—type applications that dynamically resize images for display in a Web page are great candidates for the output cache because caching the data saves the server from having to re-process the image resizing for each request. Another good example of a type of application that can take advantage of the output cache feature is a stock ticker application.

With dynamic content, data can change frequently and you must flush the cache, letting new data be retrieved and re-cached. Note that even if the data changes as frequently as every second, it may still be useful to cache the data; a site may get hundreds of requests per second or more, and caching can reduce trips to the database to retrieve data, saving the Web server and the database server from extra work.

Even if you enable output caching, IIS does not immediately cache a request. It must be requested a few times before IIS considers a request to be "cache worthy. Post as a guest Name. Email Required, but never shown.

The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked 3. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings.



0コメント

  • 1000 / 1000