How can I make sure that static content is cached client-side?

前端 未结 2 449
终归单人心
终归单人心 2021-02-01 09:58

How can I make sure that static content (images, css, javascript) is cached? What is the best approach?

2条回答
  •  误落风尘
    2021-02-01 10:41

    You can also make use of the HTML5 Offline web applications manifest. It allows you to set up a manifest where you define which files will be cached locally.

    It is a nice, clear to understand broadly implemented, way of avoiding having to learn about IIS and HTML Caching.

    http://www.w3schools.com/html/html5_app_cache.asp

    (you should totally read up about those things)

提交回复
热议问题