Varnish working only with Curl

1

Good morning, this is my scenario, I am using laravel 5.3 and Varnish 5, I created a middleware that passes a response with the following Headers

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

No Varnish vcl on 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 Runs: 1.1 varnish   (Varnish / 5.0) X-Cache: HIT X-Cache-Hits: 15 Accept-Ranges: bytes   Connection: keep-alive

But in browsers, it does not cache. Can someone give me a light?

    
asked by anonymous 09.09.2017 / 13:59

0 answers