Skip to main content
Updated and highlighted the description
Source Link
Sumit Bhatia
  • 6.1k
  • 2
  • 10
  • 28

One way to do this is to use the section in your web.config. https://learn.microsoft.com/en-us/iis/configuration/system.webserver/applicationinitialization/

https://learn.microsoft.com/en-us/iis/configuration/system.webserver/applicationinitialization/

This will load the pages you define when the app starts, so if you choose those pages wisely you can fill some caches.

Example:

<system.webServer> <applicationInitialization remapManagedRequestsTo="initializing.html" doAppInitAfterRestart="true" skipManagedModules="true"> <add initializationPage="/" hostName="www.xxx.com"/> <add initializationPage="/en/products" hostName="www.xxx.com"/> </applicationInitialization> 

One way to do this is to use the section in your web.config. https://learn.microsoft.com/en-us/iis/configuration/system.webserver/applicationinitialization/

This will load the pages you define when the app starts, so if you choose those pages wisely you can fill some caches.

Example:

<system.webServer> <applicationInitialization remapManagedRequestsTo="initializing.html" doAppInitAfterRestart="true" skipManagedModules="true"> <add initializationPage="/" hostName="www.xxx.com"/> <add initializationPage="/en/products" hostName="www.xxx.com"/> </applicationInitialization> 

One way to do this is to use the section in your web.config.

https://learn.microsoft.com/en-us/iis/configuration/system.webserver/applicationinitialization/

This will load the pages you define when the app starts, so if you choose those pages wisely you can fill some caches.

Example:

<system.webServer> <applicationInitialization remapManagedRequestsTo="initializing.html" doAppInitAfterRestart="true" skipManagedModules="true"> <add initializationPage="/" hostName="www.xxx.com"/> <add initializationPage="/en/products" hostName="www.xxx.com"/> </applicationInitialization> 
Source Link
Gatogordo
  • 20.5k
  • 2
  • 41
  • 101

One way to do this is to use the section in your web.config. https://learn.microsoft.com/en-us/iis/configuration/system.webserver/applicationinitialization/

This will load the pages you define when the app starts, so if you choose those pages wisely you can fill some caches.

Example:

<system.webServer> <applicationInitialization remapManagedRequestsTo="initializing.html" doAppInitAfterRestart="true" skipManagedModules="true"> <add initializationPage="/" hostName="www.xxx.com"/> <add initializationPage="/en/products" hostName="www.xxx.com"/> </applicationInitialization>