Cache-Control: max-age=2592000 但是很多网站优化建议中要求 Cache-Control 增加一个 public ,例如 Cache-Control: public, max-age=2592000 为此我们可以使用 add_header 来设置 add_header Cache-Control "public, max-age=2592000"; 但是该指令跟 expires 有重叠,就会生成两个 Cache-Control 的 head,例如 Expi...
< Expires: Wed, 28 Aug 2024 12:42:43 GMT < Cache-Control: public, max-age=2592000 < Server: gws < Content-Length: 220 < X-XSS-Protection: 0 < X-Frame-Options: SAMEORIGIN < Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000 < <HTML><HEAD> <TITLE>301 Moved</TITLE>...
Public-Key-Pins: pin-sha256="base64=="; max-age=expireTime [; includeSubdomains][; report-uri="reportURI"] 各字段含义如下: pin-sha256即证书指纹,允许出现多次(实际上最少应该指定两个); max-age和includeSubdomains分别是过期时间和是否包含子域,它们在 HSTS(HTTP Strict Transport Security)中也有,格...