Cache-Control Header & Browser Caching IIS7

前端 未结 2 360
夕颜
夕颜 2021-02-04 20:21

I am using Google Page Speed on my website in IIS7 and I was wondering how to set

Leverage browser caching - The following resources are missing a

2条回答
  •  囚心锁ツ
    2021-02-04 20:45

    Under system.webServer in web.config set for example

    
                
                    
                    
                    
                
            
    

    This can also be configured from IIS Manager under Output Caching but what the GUI doesn't do is set the 'location' attribute. Setting it to 'Any' will set Cache-Control:public.

    You can read more about it here.

提交回复
热议问题