瀏覽代碼

Added expires directive and map to nginx, allowing browser to cache rspamd JS,CSS and image files.

Alireza 7 年之前
父節點
當前提交
1b898b1c7b
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      data/conf/nginx/site.conf

+ 3 - 1
data/conf/nginx/site.conf

@@ -9,9 +9,11 @@ map $http_x_forwarded_proto $client_req_scheme {
 
 map $sent_http_content_type $expires {
         default off;
+        text/html off;
         text/css 1d;
         application/javascript 1d;
-        ~image/ 1d;
+        application/json off;
+        image/png       1d;
 }
 
 server {