html5 meta tag cache-control no longer valid?

前端 未结 4 1430
抹茶落季
抹茶落季 2020-12-08 19:40

How do I define


in HTML5? It is no longer valid according to the W3C Vali

4条回答
  •  忘掉有多难
    2020-12-08 20:24

    There is no HTML solution. Mozilla's application cache (cache.manifest) is deprecated. The application cache site says:

    This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible. ... Use Service Workers instead.

    Apart from that, I suggest you use HTTP Cache-Control to solve cache issues.

提交回复
热议问题