HTML - Cache control max age

后端 未结 4 1009
梦毁少年i
梦毁少年i 2021-02-12 14:55

I\'ld like to present always the latest website content to the user but also have it fast loaded. By researching I came across postings people suggesting to use the cache for sp

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-12 15:20

    As mentioned Expires and Cache-Control Headers are usually the best way to incorporate information about information lifetime.

    Because clients are not very reliable on interpreting these informations proxies with caching capabilities like squid, varnish or such solutions are preferred by most people. You also need to consider if you want to cache only static content (like images, stylesheets, ..) or dynamically generated content as well.

提交回复
热议问题