Tuesday, February 24, 2009

Optimizing MOSS 2007 Application

I.Using Disk Based Caching(Binary Large Objects -BLOB)

1.Open the web.configFile(DefaultPath:C:\Inetpub\wwwroot\wss\VirtualDirectories\80) in suitable editor.
2.Look for the below entry in Web.config for the site and enabled attributed is set to false by default.
<BlobCache location="C:\blobCache" path="\.(gifjpgpngcssjs)$" maxSize="10" enabled="false" />
3.Set enabled="true"
4.To change the size of the Cache ,change the value of maxSize.Default Size is 10 GB if not much
much size in Current Directory then change the value of location to some other Directory .
5.To add new file types to the BLOB cache, type the file type next to the other file types. Separate each file type with a pipe () character as shown in the file.
6 Another parameter max-age specifies the maximum amount of time in seconds that the client browser caches BLOBs downloaded to the client computer; Set max-age="3600"
After adding all the parameters and values the BlobCache entry will look like below
<BlobCache location="C:\blobCache" path="\.(gifjpgpngcssjs)$" maxSize="10" enabled="true" max-age="3600" />

II. Enabling Cache-Control in HTTP Headers

1.In the ISS and RightClick the Virtual directory of your web application
2.Click on Property Menu item and Select “Http Header ”tab



3.Click Add button ,
enter Custom header name: cache-control
Custom Header Value :- max-age=3600, no-check



4.Click Ok

No comments:

Post a Comment