x First time here? Check out the FAQ
  • Avatar35posts61karma

    Use IIS For Client Side Caching

    Duncan McDougall started this topic January 30, 2012 @ 01:05, Go directly to the topic solution


    I see there is a CachingTimeSpan setting in the config to apply client side caching. I appreciate how more useful this can be when dealing with different classes. However, this isn't required on a current project and I would instead like to keep all my client side caching within IIS itself. All caching in one place, and less fiddling with files when deploying to different servers. Is this possible?



  • Douglas Robar posted this reply January 30, 2012 @ 01:12

    I don't think so because ImageGen Basic always sets the headers to include an ETag and the cache time to zero. You could perhaps figure a way to remove the headers from ImageGen and have IIS set them again I suppose. 

    This is an unintended consequence of ImageGen Basic - the goal is to always ask the server if a new version of the image has been put on the server. With the ETag and other caching information ImageGen can respond with either a new image to your specifications or simply give a tiny and quick 304 response. This is all server-side caching.

    ImageGen Professional lets you add client-side caching. It's all configured in the imagegen.config file and can be set on a per-class basis or in the 'default' class if you want every request to be cached some minimum amount.


  • Duncan McDougall posted this reply January 30, 2012 @ 05:51

    Thanks for the quick reply Doug. I suppose another HTTP Handler to override ImageGen cache settings would work. It looks like we'll probably have to upgrade though if the client can agree the cost. Hopefully we can convince them the £125 is worth it for the performance boost and server load.

Please login or Sign up To post replies