浏览代码

Add cache-control: no-cache to nginx config

Paul Szymanski 4 年之前
父节点
当前提交
ff2d146078
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      nginx/default.conf

+ 4 - 0
nginx/default.conf

@@ -5,6 +5,8 @@ server {
     #charset koi8-r;
     #access_log  /var/log/nginx/host.access.log  main;
 
+    expires epoch;
+
     location / {
         root   /usr/share/nginx/html;
         index  index.html index.htm;
@@ -42,6 +44,8 @@ server {
     #charset koi8-r;
     #access_log  /var/log/nginx/host.access.log  main;
 
+    expires epoch;
+
     location / {
         root   /usr/share/nginx/html;
         index  index.html index.htm;