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
f5c8bf41
Commit
f5c8bf41
authored
8 years ago
by
Florent Thiery
Browse files
Options
Downloads
Patches
Plain Diff
simplify hide headers line
parent
c2f02ff9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
2.Common_services/5.Nginx/vhost_cache.conf
+2
-7
2 additions, 7 deletions
2.Common_services/5.Nginx/vhost_cache.conf
with
2 additions
and
7 deletions
2.Common_services/5.Nginx/vhost_cache.conf
+
2
−
7
View file @
f5c8bf41
...
...
@@ -51,9 +51,7 @@ server {
proxy_cache_use_stale
updating
;
# ignore upstream headers
# http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_valid
proxy_ignore_headers
Cache
-
Control
;
proxy_ignore_headers
X
-
Accel
-
Expires
;
proxy_ignore_headers
Expires
;
proxy_ignore_headers
"Cache-Control"
"X-Accel-Expires"
"Expires"
;
# hide upstream X-Cache header
proxy_hide_header
X
-
Cache
;
# add own X-Cache header
...
...
@@ -83,10 +81,7 @@ server {
# instruct browser to cache this
expires
7
d
;
# headers
proxy_ignore_headers
Cache
-
Control
;
proxy_ignore_headers
Set
-
Cookie
;
proxy_ignore_headers
X
-
Accel
-
Expires
;
proxy_ignore_headers
Expires
;
proxy_ignore_headers
"Cache-Control"
"X-Accel-Expires"
"Expires"
;
add_header
X
-
Cache
$
upstream_cache_status
;
}
}
...
...
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