HTML - Cache control max age

后端 未结 4 1010
梦毁少年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 14:59

    As per the YSlow recommendations you could configure your web server to add an Expires or a Cache-Control HTTP header to the response which will result in user agents caching the response for the specified duration.

提交回复
热议问题