第二天 06:00 a.m 到期
expires the next day at 06:00 a.m
目前我使用这个 nginx 配置来缓存 index.html
一天:
location /index.html {
gzip_static on;
expires 1d;
add_header Cache-Control public;
break;
}
有没有办法配置缓存总是在第二天 06:00 a.m.?
http://nginx.org/en/docs/http/ngx_http_headers_module.html#expires
In addition, it is possible to specify a time of the day using the “@” prefix (0.7.9, 0.6.34):
expires @15h30m;
目前我使用这个 nginx 配置来缓存 index.html
一天:
location /index.html {
gzip_static on;
expires 1d;
add_header Cache-Control public;
break;
}
有没有办法配置缓存总是在第二天 06:00 a.m.?
http://nginx.org/en/docs/http/ngx_http_headers_module.html#expires
In addition, it is possible to specify a time of the day using the “@” prefix (0.7.9, 0.6.34):
expires @15h30m;