Added expires directive and map to nginx, allowing browser to cache rspamd JS,CSS and image files.
This commit is contained in:
		@@ -9,9 +9,11 @@ map $http_x_forwarded_proto $client_req_scheme {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
map $sent_http_content_type $expires {
 | 
					map $sent_http_content_type $expires {
 | 
				
			||||||
        default off;
 | 
					        default off;
 | 
				
			||||||
 | 
					        text/html off;
 | 
				
			||||||
        text/css 1d;
 | 
					        text/css 1d;
 | 
				
			||||||
        application/javascript 1d;
 | 
					        application/javascript 1d;
 | 
				
			||||||
        ~image/ 1d;
 | 
					        application/json off;
 | 
				
			||||||
 | 
					        image/png       1d;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
server {
 | 
					server {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user