Enabling Cache on Your Windows Hosting Account using clientCache

With our Windows hosting accounts, you can create caching rules to enhance your website's speed by using clientCache in your Web.config file. 

Microsoft has instructions on implementing clientCache here, as well as more detailed information about the element here

Example 

Microsoft uses the following example code in a Web.config to enable caching: 

<configuration>

   <system.webServer>

      <staticContent>

         <clientCache cacheControlMode="UseExpires"

            httpExpires="Tue, 19 Jan 2028 03:14:07 GMT" />

      </staticContent>

   </system.webServer>

</configuration>



This will cache the content you define as static until Jan. 19, 2028.
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

500 internal server error - How to Get detailed errors

By default, our Windows hosting accounts display a custom/generic error when applications...

Disabling Browser Cache on Windows Server static files

The following configuration sample adds an HTTP "Cache-Control: no-cache" header to the response,...

How to install JAVA application in DocumentRoot directory?

There is no such functionality in Plesk at the moment to install java application in root...

How to set Session Timeout in web.config

There are two way to set session timeout property in ASP.Net.First Method : Edit the following in...

Scheduled Tasks (cron job)

Scheduling Tasks (Windows) If you need to run scripts on your hosting account at specific time,...