Varnish working only with Curl

Asked

Viewed 25 times

1

Good morning, this is my scenario, I’m using Laravel 5.3 and Varnish 5, I created a middleware that passes a Replay with the following Headers

X-Cacheable:1
Cache-Control:max-age=300, public

No Varnish vcl in vcl_backend_response

if (beresp.http.X-Cacheable ~ "1") {
   unset beresp.http.set-cookie;
}

With the command um curl -I <ip>,

HTTP/1.1 200 OK Server: Nginx/1.13.5 Content-Type: text/html; charset=UTF-8 Cache-Control: max-age=3600, public X-Cacheable: 1 Date: Sat, 09 Sep 2017 11:54:40 GMT X-Varnish: 24 8 Age: 24 Route: 1.1 Varnish (Varnish/5.0) X-Cache: HIT X-Cache-Hits: 15 Accept-Ranges: bytes Connection: Keep-Alive

But in navigators, he doesn’t stalk. Someone can give me a light?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.