In this short post we are going to speak about how you can easily cache static files with the help of your web.config, this post only applies to websites that use ASP.NET
Enabling static file caching is probably the easiest thing you can do and is often one of the most common things that is overlooked, all it requires is a few lines adding within the <system.webServer> section of your web.config file. Below we have provided an example to cache the static content for 28 days
Why would you want to cache static files for your website?
If you picture the scene...Someone browses to your website, once they arrive there, the browser has to download all its resources (images, pages, media). This happens each time they visit your website and uses up bandwidth to do so, caching the static content helps prevent unneeded bandwidth usages.
Please contact us for more information, by telephone on 01733 902070 or via our contact form