I am currently working to make my page optimized.I came across the cache expiry.I studied about it and how it works.I got the following code to be added in web.config file.
<system.webServer>
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="14.00:00:00" />
</staticContent>
</system.webServer>
But when i test my web page with yslow ,it still says set expiry header for css,js,image files.Infact addding this code brings no change in the yslow grade.I tried other example as well such as
`<%@ OutputCache Duration="60" VaryByParam="None" VaryByCustom="browser" %>`
And it does affect the rating,rating increase by one.But still the css,image,js files are not getting the expiry date.
Do i need to change anything else then the webconfig file to add expiry header to css,js files.?
DO i need to make change in iis?
I am testing my offline localhost site by the way?
Please help!