how to cache css, images and js?

前端 未结 6 2153
攒了一身酷
攒了一身酷 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:44

    Browsers take care of this for you automatically, actually. You have to go out of your way to get them to NOT cache css, js, html and images.

    I'm not that familiar with ASP MVC, but I think they type of caching you're thinking of is opcode caching for your created dynamic output server-side?

提交回复
热议问题