Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
a86191e8
Commit
a86191e8
authored
8 years ago
by
Florent Thiery
Browse files
Options
Downloads
Patches
Plain Diff
ignore url parameters for caching, fixes
#18898
parent
e325e65b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
71.Install_a_cache/default
+13
-1
13 additions, 1 deletion
71.Install_a_cache/default
with
13 additions
and
1 deletion
71.Install_a_cache/default
+
13
−
1
View file @
a86191e8
...
...
@@ -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;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment