[ngx_http_headers_module][1]
>[success]add_header name value [always];
為HTTP報文添加響應頭
>[success]expires [modified] time;
expires epoch | max | off;
默認值:off
off 阻止改變Expires和cache_control
~~~
expires 24h; # 響應時間加上24h
expires modified +24h;
expires @24h; # 指定過期時間點24h,0-24h
expires 0; # 立馬過期
expires -1; # 將Cache-Control設置為no-cache
expires epoch; # 設置為1970年
expires max; # 盡可能不過期
~~~
[1]:http://nginx.org/en/docs/http/ngx_http_headers_module.html
- nginx的功能
- nginx常用變量
- Nginx內核模塊
- Nginx的事件模塊
- Nginx的HTTP模塊
- Nginx的fastcgi
- nginx的proxy
- Upstream實現后臺服務器集群
- 文件操作優化相關的配置
- Nginx模塊管理和進程管理
- 模塊管理
- 進程管理
- 針對Nginx的Linux系統優化
- Nginx如何處理一個請求
- nginx狀態信息
- Nginx工具
- Nginx限制流量
- Nginx限制用戶的并發連接數
- 配置FLV服務器
- Nginx訪問控制
- Nginx自動索引
- Nginx網頁壓縮傳輸
- 控制Nginx如何記錄日志
- Nginx改寫響應
- Nginx重寫
- 后臺Nginx記錄原始原始IP
- Nginx防盜鏈
- Nginx的https