locked
What does clientCache do? RRS feed

  • Question

  • I recently upgraded a project from VS2012.4 to VS2013.2 and got this message in the upgrade log:

    clientCache configuration element already exists in the application's web.config file and was not updated. Setting this element's cacheControlMode attribute to DisableCache is recommended for HTML Clients.

    What does the clientCache do?  Will setting it to DisableCache harm performance of the Silverlight client? 

    Wednesday, May 21, 2014 5:01 PM

Answers

  • clientCache configuration element already exists in the application's web.config file and was not updated. Setting this element's cacheControlMode attribute to DisableCache is recommended for HTML Clients.

    For this issue, if we add an HTTP "Cache-Control: no-cache" header to the response, thereby disabling caching of requests.

    <configuration>
       <system.webServer>
          <staticContent>
             <clientCache cacheControlMode="DisableCache" />
          </staticContent>
       </system.webServer>
    </configuration>

    Further information: Client Cache <clientCache>

    Regards

    Angie


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Angie Xu Monday, June 9, 2014 1:29 AM
    Wednesday, May 28, 2014 6:27 AM