Monday, October 7, 2013

SharePoint 2013 - Increase page load performance with BLOB caching



On web apps where we want to reduce page load times we can enable BLOB caching so that image, CSS, and JavaScript files can be served directly from the WFE without having to make a round trip to the DB.

  • On WFE servers: 
  •  Verify the following directory is in place (or create your own desired target): D:\SharePoint\BlobCache\15
  • Open IIS
  • For each site (web application) where BLOB caching is desired
a.       Click the site and Explore
b.      Make a backup of the web.config
c.       Update the following line in the web.config
<BlobCache location="D:\SharePoint\BlobCache\15" path="\.(gif|jpg|jpeg|jpe|jfif|bmp|dib|tif|tiff|themedbmp|themedcss|themedgif|themedjpg|themedpng|ico|png|wdp|hdp|css|js|asf|avi|flv|m4v|mov|mp3|mp4|mpeg|mpg|rm|rmvb|wma|wmv|ogg|ogv|oga|webm|xap)$" maxSize="10" max-age="86400" enabled="true" />
d.      Save changes to web.config

Note: maxSize is in GB, max-age is in seconds (86400 = 24 hours)

No comments:

Post a Comment

Thank you for your comments!