views:

29

answers:

1

Hi,

I'm implementing Outputcache in my application and it works fine, but the first time always take a lot to load and the next following request will be faster...

I would like to know if there is a way to initiate the page caching on the server side and serve the cached page upon the very first request, rather than have it triggered by the user one first time.

Any ideas/suggestions will be very much welcome.

Best regards, TT

+1  A: 

Take a look at the IIS Warm up module, you can configure the pages it will invoke which then when you deploy your new site it will cause the page cache to be built.

Now Available: The IIS 7.5 Application Warm-Up Module

Another feature to consider is in .NET 4.0 you can make the OutputCache be disk based which will allow the cache to persist between the app pool being reset, you may want to consider this in addition to the warm up module.

Chris Marisic
Great input. Thanks a lot!
byte_slave
Learned about both of these at DevConnections a couple days ago!
Chris Marisic