April 2, 2012

How to force browser to clear cache for the Style sheet and Java Script

While googling on to the internet we may found so many solutions for forcing browser to clear the cache for the Stylesheet and javascript using code programatically.

But if we want to do it without any programming using IIS(Interner Information Server)?.

Follow given below steps to do this.

1.From the Start menu, click Administrative Tools, and then click Internet Information Services (IIS) Manager.

2.In the tree view on the left side, find your application.

3. Select the Output Caching menu item.

4. In the right column, click Add in the Action menu. You can add your output caching rule here.

5. In the File name extension field, for example, type .css, and then select User-mode caching and then click on Advanced button.

6. select the Query string variable(s) check box. And enter the appropriate variable(s) in the Query string variable(s) text box as *.

7. Follow this same procedure for javascript , add .js instead of .css in step 5.

Happy coding


If you have any questions you can reach out our SharePoint Consulting team here.

No comments:

Post a Comment