HomeDev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunityDoc feedbackLog In
GitHubNuGetDev CommunityDoc feedback


You can add cache information to the response headers at request of **static files** so the client can cache files and not have the web server serve at each request, significantly reducing the total request time for a client.

You can set the `<staticFile>` section of _web.config_ on a location level. For the `<staticFile>` section to be available, you have to add it to `<configSections>` first:



This `<staticFile>` section controls the `Expires` and `Cache-Control` cache header directives. You can set different expiration times depending on the path to the static file. The staticFile configuration is used by both the `StaticFileHandler` that delivers files from Virtual Path Providers and by the media system in CMS. Files delivered by IIS, such as CSS and other resources on the website, are configured using [standard IIS configuration settings](🔗).