Best Practice - Caching Files Using ASP Dot Net

In this short post we are going to speak about how you can easily cache static files

share on facebook share on twitter share on google share on digg share on linked in share on stumble upon

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

caching files


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.

Questions?
Please contact us for more information, by telephone on 01733 902070 or via our contact form

Best Practice - Caching Files Using ASP Dot Net

Posted in Coding by on 03 December 2014

Related Posts

What Are CSS Shapes?
WHAT ARE CSS SHAPES?
Erm...What is CAPTCHA?
ERM...WHAT IS CAPTCHA?
How To Create A Link To A Phone Number In HTML
HOW TO CREATE A LINK TO A PHONE NUMBER IN HTML
Special HTML Characters
SPECIAL HTML CHARACTERS
Adding A Canonical Tag To An ASP.NET page
ADDING A CANONICAL TAG TO AN ASP.NET PAGE
What is meta information?
WHAT IS META INFORMATION?

Fresh From Twitter...

Join the conversation on Twitter @pebbleltd
for all the latest news on web design, ecommerce and search engine marketing with one of the leading web design agencies in the uk

  • Pebble (Peterborough)

    26 Tesla Court
    Innovation Way
    Peterborough
    PE2 6FL

    Tel: 01733 902070

    View On Map

  • Pebble (Kings Langley)

    The Old Chapel
    69 Primrose Hill
    Kings Langley
    WD4 8HX

    Tel: 01442 505878

    View On Map

Pebble Ltd is registered in England & Wales: 06257777 and registered for VAT No: 993 3500 06

Pebble Ltd is Data Protection registered ZA122783

Best Practice - Caching Files Using ASP Dot Net Best Practice - Caching Files Using ASP Dot Net In this short post we are going to speak about how you can easily cache static files

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

caching files


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.

Questions?
Please contact us for more information, by telephone on 01733 902070 or via our contact form

Contact Pebble

  • Pebble Ltd (Peterborough)
    26 Tesla Court
    Innovation Way
    Peterborough
    PE2 6FL
    Tel: 01733 902070
  • Pebble Ltd (Kings Langley)
    The Old Chapel
    69 Primrose Hill
    Kings Langley
    WD4 8HX
    Tel: 01442 505878