From a86191e843bf0c0919e59f27a382a2d9c02ff8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Wed, 18 Jan 2017 18:25:47 +0100 Subject: [PATCH] ignore url parameters for caching, fixes #18898 --- 71.Install_a_cache/default | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/71.Install_a_cache/default b/71.Install_a_cache/default index 18b06620..309391d6 100644 --- a/71.Install_a_cache/default +++ b/71.Install_a_cache/default @@ -28,6 +28,8 @@ server { add_header X-Cache $upstream_cache_status; proxy_cache_use_stale updating; proxy_cache_min_uses 1; + # do not consider secure urls as new files + proxy_cache_key $scheme$proxy_host$uri; } location ~* /live/.*\.(ts)$ { @@ -44,6 +46,8 @@ server { proxy_cache_use_stale updating; proxy_cache_min_uses 1; proxy_cache_valid 200 10s; + # do not consider secure urls as new files + proxy_cache_key $scheme$proxy_host$uri; } # cache configuration for vod (old easycast stations) @@ -60,6 +64,8 @@ server { add_header X-Cache $upstream_cache_status; proxy_cache_use_stale updating; proxy_cache_min_uses 1; + # do not consider secure urls as new files + proxy_cache_key $scheme$proxy_host$uri; } location ~* /vod/.*\.(ts)$ { @@ -76,7 +82,9 @@ server { proxy_cache_use_stale updating; proxy_cache_min_uses 1; proxy_cache_valid 200 7d; - } + # do not consider secure urls as new files + proxy_cache_key $scheme$proxy_host$uri; + } # cache configuration for vod (new easycast stations 06/04/2016) location ~* \.(m3u8)$ { @@ -92,6 +100,8 @@ server { add_header X-Cache $upstream_cache_status; proxy_cache_use_stale updating; proxy_cache_min_uses 1; + # do not consider secure urls as new files + proxy_cache_key $scheme$proxy_host$uri; } location ~* \.(ts)$ { @@ -108,6 +118,8 @@ server { proxy_cache_use_stale updating; proxy_cache_min_uses 1; proxy_cache_valid 200 7d; + # do not consider secure urls as new files + proxy_cache_key $scheme$proxy_host$uri; } } -- GitLab