Caching Caching and IIS7 Browser Caching

I use Google Page Speed ​​on my website in IIS7 and I was wondering how to install

Use browser caching . The following resources do not expire the cache
Use proxy caching . Consider adding the "Cache-Control: public" header to the following resources.

I am using doDynamicCompression in my web.config and a little confused, how to install them? Hope for help

Note: the link is used http://www.iis.net/ConfigReference/system.webServer/httpCompression

+5
source share
2 answers

system.webServer web.config, ,

<caching>
            <profiles>
                <add extension=".png" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" />
                <add extension=".jpg" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" />
                <add extension=".gif" policy="CacheUntilChange" kernelCachePolicy="CacheUntilChange" location="Any" />
            </profiles>
        </caching>

IIS Output Caching, , GUI , "location". "" Cache-Control: public.

.

+20

, , IIS .

, , IIS. (ASPX, PHP, ISAPI, ), Expires Cache-Control . IIS ( ) , Set-Cookie . ASP ASP.net "Cache-Control: private" , .

+1

All Articles