소스 검색

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

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;
+    }
   }
 }