第二天上午06:00到期

时间:2015-02-09 16:49:19

标签: nginx cache-control

目前我使用此nginx配置缓存index.html一天:

location /index.html {
  gzip_static on;
  expires 1d;
  add_header Cache-Control public;
  break;
}

有没有办法配置缓存总是在第二天上午06:00过期?

1 个答案:

答案 0 :(得分:2)

http://nginx.org/en/docs/http/ngx_http_headers_module.html#expires

  

此外,可以使用“@”前缀(0.7.9,0.6.34)指定一天中的时间:

   expires @15h30m;
相关问题