ITeye博客

nginx expires 绝对过期时间

seavers · 2013-06-22 00:09 · nginx · Web前端 · Markdown

nginx expires 绝对过期时间

参考: http://wiki.nginx.org/HttpHeadersModule


  expires       24h;
  expires       modified +24h;
  expires       @15h30m;
  expires       0;
  expires       -1;
  expires       epoch;

@time 表示绝对过期时间, 基于一天的某个时间点来过期

@15h30m, 这里的意思是每天15点30分的时候,请求过期

举例, 比如 访问时间为 08:00, 则过期时间为 15:30 访问时间为 21:33, 则过期时间为 第二天的15:30分

原文中的解释: Times written with an @ prefix represent an absolute time-of-day expiry, written in either the form Hh or Hh:Mm, where H ranges from 0 to 24, and M ranges from 0 to 59 (available from versions 0.7.9 & 0.6.34).

评论(1)

  1. #1 楼 · shangxuejin · 2014-02-27 16:19

    你试过吗?不对吧

评论功能维护中,当前仅展示历史评论。