eleven26

  • Home
  • Tags100
  • Archives346
  • Table of Contents
  • Overview

eleven26

346 posts
100 tags

nginx 文件永不缓存

Posted on 2019-09-10

参考链接 : http://nginx.org/en/docs/http/ngx_http_headers_module.html

假设我们要禁用 .xls 和 .xlsx 后缀的浏览器缓存:

只需要设置 expires -1; 即可

1
2
3
4
location ~ .*\.(xls|xlsx)$
{
expires      -1;
}
linux nginx
php 7.4 新特性之箭头函数
php 系统信号处理
© 2025 eleven26
Powered by Hexo & NexT.Mist
0%