Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/2.3' into 2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tyrala committed Jan 24, 2019
2 parents 782e2cb + b4a4ba7 commit ec61a8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/docker/selenium.yml
Expand Up @@ -14,7 +14,7 @@ services:
networks:
- backend
# Because of: https://github.com/elgalu/docker-selenium/issues/20
shm_size: 256m
shm_size: 512m

app:
depends_on:
Expand Down
12 changes: 6 additions & 6 deletions doc/varnish/vcl/varnish4_xkey.vcl
Expand Up @@ -248,15 +248,15 @@ sub vcl_deliver {
}
}


if (client.ip ~ debuggers) {
# In Varnish 4 the obj.hits counter behaviour has changed, so we use a
# different method: if X-Varnish contains only 1 id, we have a miss, if it
# contains more (and therefore a space), we have a hit.
if (resp.http.x-varnish ~ " ") {
// Add X-Cache header if debugging is enabled
if (obj.hits > 0) {
set resp.http.X-Cache = "HIT";
set resp.http.X-Cache-Hits = obj.hits;
set resp.http.X-Cache-TTL = obj.ttl;
// Not readable on Varnish 4.1LTS, so check for existence until we drop support for it in future versions
if (obj.ttl) {
set resp.http.X-Cache-TTL = obj.ttl;
}
} else {
set resp.http.X-Cache = "MISS";
}
Expand Down

0 comments on commit ec61a8b

Please sign in to comment.