简体   繁体   English

如何设置有效期限或最长使用期限的HTTP标头

[英]how to set expiry date or a maximum age http headers

how to set expire date for static resources in http headers 如何在http标头中设置静态资源的过期日期

Leverage browser caching Setting an expiry date or a maximum age in the HTTP headers for static resources instructs the browser to load previously downloaded resources from local disk rather than over the network. 利用浏览器缓存在静态资源的HTTP标头中设置到期日期或最长期限,可以指示浏览器从本地磁盘而不是通过网络加载以前下载的资源。 Leverage browser caching for the following cacheable resources: http://s7.addthis.com/js/300/addthis_widget.js (expiration not specified) 利用浏览器缓存以下可缓存资源: http : //s7.addthis.com/js/300/addthis_widget.js (未指定到期时间)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM