Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

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.

share|improve this answer
    
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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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