NeonRant
7/25/2019 - 6:55 AM

Server caching

In the web config you can determine which folders are cached, or more specifically, the items in a specified folder path. In this example, there are two folders being cached, using two separate location sections. In the location section, add a system.webserver section.

<location path="App_Themes/cbp_foundation/css">
	<system.webServer>
		<staticContent>
			<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="10.00:00:00" />
		</staticContent>
	</system.webServer>
</location>

<location path="App_Themes/cbp_foundation/js">
	<system.webServer>
		<staticContent>
			<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="10.00:00:00" />
		</staticContent>
	</system.webServer>
</location>