瀏覽代碼

Поправил настройки кеширования

Book Pauk 5 年之前
父節點
當前提交
f209d49bb5
共有 1 個文件被更改,包括 9 次插入6 次删除
  1. 9 6
      docs/omnireader/omnireader

+ 9 - 6
docs/omnireader/omnireader

@@ -18,14 +18,17 @@ server {
     proxy_pass http://localhost:44081;
   }
 
-  location /tmp {
-    root /home/liberama/public;
-    add_header Content-Type text/xml;
-    add_header Content-Encoding gzip;
-  }
-
   location / {
     root /home/liberama/public;
+
+    location /tmp {
+      add_header Content-Type text/xml;
+      add_header Content-Encoding gzip;
+    }
+
+    location ~* \.(?:manifest|appcache|html)$ {
+      expires -1;
+    }
   }
 }