前端下载大文件状态码302,去除nginx缓存

server {
  listen 80;
  client_max_body_size 20M;
  location /pdf/ {
    expires -1s;
    add_header Last-Modified "";
    add_header Cache-Control no-cache;

    root /home/ftpuser/www/;
    autoindex on;
  }

}
posted @ 2021-04-28 19:01  叨叨勋  阅读(367)  评论(0编辑  收藏  举报