Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • umbracocool 108 posts 197 karma points
    Jun 02, 2012 @ 20:41
    umbracocool
    0

    Specify cache in Umbraco (Cache-Control)

    Hi friends!, I used Google and PageSpeed tells me I have to cache my images, css, js ... etc. order to increase the speed of my site. How do I render this in Umbraco? Any suggestions?

    Thank you very Much!

  • Lee Kelleher 3945 posts 15163 karma points MVP 10x admin c-trib
    Jun 03, 2012 @ 13:23
    Lee Kelleher
    0

    I believe the recommendation of PageSpeed (and YSlow, etc) is to add Expiry headers to all static files, (images, css, js), so that the user's web-browser can cache them for longer.

    This wouldn't be done inside Umbraco, but done in IIS ... although I believe you might be able to set these within your Web.config.

    Here are a couple of links to help you out.

    http://www.iis.net/ConfigReference/system.webServer/staticContent/clientCache

    http://www.galcho.com/Blog/post/2008/02/27/IIS7-How-to-set-cache-control-for-static-content.aspx

    http://stackoverflow.com/questions/865252/add-expires-or-cache-control-header-to-static-content-in-iis

    Cheers, Lee.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies