Browse Source

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

Book Pauk 5 years ago
parent
commit
f209d49bb5
1 changed files with 9 additions and 6 deletions
  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;
+    }
   }
 }