---
title: "Nginx静态文件缓存过期配置"
author: "Fanyucai"
date: "2019-04-20T23:30:08Z"
tags: []
categories: ["操作系统"]
slug: "nginx"
draft: false
lastmod: "2019-04-20T23:30:28Z"
id: 2440313
url: "https://fanyc.iteye.com/blog/2440313"
---

location /web {

    add\_header Cache-Control no-cache;

    add\_header Cache-Control private;

    expires 0s;

    alias /usr/share/nginx/html/web;

}