Thursday, August 26, 2010

Images in asp.net performance booster web config setting...

If your asp.net website deals with images just do this in your web.config file and see the performance and no drawbacks of doing this.

Under system.webServer in web.config set for example


<caching>
            <profiles>
                <add extension=".png" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" />
                <add extension=".jpg" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" />
                <add extension=".gif" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" />
            </profiles>
        </caching>

No comments:

Post a Comment