From 1b898b1c7b6edb564a5980e3d22e11ffbf7370c2 Mon Sep 17 00:00:00 2001 From: Alireza Date: Fri, 2 Feb 2018 17:46:49 +0330 Subject: [PATCH] Added expires directive and map to nginx, allowing browser to cache rspamd JS,CSS and image files. --- data/conf/nginx/site.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/data/conf/nginx/site.conf b/data/conf/nginx/site.conf index cf81c0b0..25516fda 100644 --- a/data/conf/nginx/site.conf +++ b/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 {