Nginx 静态资源缓存配置

示例

# Media: images, icons, video, audio, HTC
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|htc)$ {
  expires 1M;
  access_log off;
  add_header Cache-Control "public";
}

REFs

posted @ 2017-08-08 11:14  码不能停  阅读(208)  评论(0编辑  收藏  举报