web config - How do you implement far future expires headers in asp.net with IIS 6 -



web config - How do you implement far future expires headers in asp.net with IIS 6 -

we running asp.net mvc 2.0 web app , it's running on windows server 2003 iis 6.0. know iis7+ can use:

<staticcontent> <clientcache cachecontrolmode="usemaxage" cachecontrolmaxage="365:00:00"/> </staticcontent>

is there way same functionality iis6? don't have access server settings cant alter way either.

if have access webserver, can within iis manager.

check out article on microsoft technet more info:

http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/iis/0fc16fe7-be45-4033-a5aa-d7fda3c993ff.mspx?mfr=true

to set expiration of web site content

in iis manager, double-click local computer; right-click web sites folder, individual web site folder, virtual directory, or file; , click properties.

click http headers tab.

select enable content expiration check box.

click expire immediately, expire after, or expire on, , type appropriate expiration info in corresponding boxes.

click ok.

asp.net web-config iis-6 expires-header

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -