From 988d1d209e879b5d6d7df43f1a773b53c1f2fdb2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Diemer?= <stephane.diemer@ubicast.eu>
Date: Tue, 25 Oct 2016 11:16:45 +0200
Subject: [PATCH] Added cache header for static and public files (refs #18984).

---
 7.Nginx/vhost_mediaserver-msuser.conf | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/7.Nginx/vhost_mediaserver-msuser.conf b/7.Nginx/vhost_mediaserver-msuser.conf
index 858dc262..6460466d 100644
--- a/7.Nginx/vhost_mediaserver-msuser.conf
+++ b/7.Nginx/vhost_mediaserver-msuser.conf
@@ -24,6 +24,9 @@ server {
 	error_log /var/log/nginx/error_msuser.log;
 
 	location /public {
+		expires 30d;
+		add_header Pragma public;
+		add_header Cache-Control "public";
 	}
 	location /resources {
 		location ~ \.ts$ {
@@ -42,8 +45,14 @@ server {
 		}
 	}
 	location /static {
+		expires 30d;
+		add_header Pragma public;
+		add_header Cache-Control "public";
 	}
 	location /crossdomain {
+		expires 30d;
+		add_header Pragma public;
+		add_header Cache-Control "public";
 	}
 	location /streaming/ {
 		proxy_pass http://localhost:1935/live/;
-- 
GitLab