Pages

Friday, December 10, 2010

IIS is not showing Static files like Images and CSS

To more efficiently use available bandwidth, enable IIS HTTP compression. HTTP compression provides faster transmission time between compression-enabled browsers and IIS, regardless of whether your content is served from local storage or a UNC resource. You can compress static files and application response files. Compressing application response files is usually called dynamic compression.

Operating System : Windows 2003

Procedures

To enable global HTTP compression by using IIS Manager

1.In IIS Manager, double-click the local computer, right-click the Web Sites folder, and then click Properties.
2.Click theService tab, and in the HTTP compression section, select the Compress application files check box to enable compression for dynamic files.
3.Select the Compress static files check box to enable compression for static files.
4.In the Temporary directory box, type the path to a local directory or click Browse to locate a directory. Once a static file is compressed, it is cached in this temporary directory until it expires, or the content changes. The directory must be on the local drive of an NTFS–formatted partition. The directory cannot be compressed or shared, and the access control lists (ACLs) for the directory must include Full Control access to the identity of the application pool or to the IIS_WPG group.
5.Under Maximum temporary directory size, click a folder size option. If you specify a maximum size under Limited to (in megabytes) (the default setting is 95 MB), then when the limit is reached, IIS automatically cleans up the temporary directory by applying the "least recently used" rule.
6.Click Apply, and then click OK.


To enable global HTTP compression by using Adsutil.vbs

1.Open a command prompt.
2.To enable dynamic compression, type the following at the command prompt and then press ENTER:
cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoDynamicCompression true
3.To enable static compression, type the following at the command prompt and then press ENTER:
cscript adsutil.vbs set w3svc/filters/compression/parameters/HcDoStaticCompression true


****AS IS**** ;  Please apply at your own risk.

No comments:

Post a Comment