how to cache css, images and js?

前端 未结 6 2182
攒了一身酷
攒了一身酷 2020-12-13 03:01

I would like to have images, css, and javascript cached client-side on their browser when they load up a web page. There are so many different types of caching I am confused

6条回答
  •  孤街浪徒
    2020-12-13 03:29

    Client side caching is handled automatically by browsers when you properly set Cache-Control headers and set web.config. Like that :

    
        
            
        
    
    

提交回复
热议问题