Is it possible to set Expires caching headers for static content in _layouts and the Style Library?

Currently, each page request generates about 100 requests for static content like CSS, images and JavaScript, each resulting in a Not Modified response from the server. But these 100 requests are having an impact on the perceived performance of the site.

I have static content deployed to both _layouts (non-modifiable content) and the Style Library (modifiable content). Some of this content is themes for jQuery components, some is custom JavaScript, some is images used for with CSS.


I have the same question myself and when I get some time I plan on looking at Disk Based Caching for Binary Large Objects. If you do give it a try it would be good to hear how it worked.

  • Actually, this works quite nicely. Enabling the SharePoint BLOb cache and setting the max-age to something did the trick. – ScarePoint Mar 31 '11 at 9:54
  • @ScarePoint how did you set the "max-age", directly in IIS? – Meryovi Oct 18 '12 at 14:26

You would add max-age directly in the web.config of the IIS site for the SharePoint site in the

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.