Running a curl -I against a txt file, I get this:
HTTP/1.1 200 OK
Date: Thu, 16 Apr 2015 17:20:02 GMT
Vary: Accept-Encoding,User-Agent
Last-Modified: Thu, 23 Sep 2010 14:56:01 GMT
Cache-Control: max-age=3600, public
Expires: Thu, 16 Apr 2015 18:20:02 GMT
Pragma: public
Content-Type: text/plain
Age: 0
ETag: W/"460f-490ee75dee240-gzip"
x-Cache: uncached
Connection: keep-alive
so it seems they are not getting cached and getting an User-Agent in Vary.
I'm hosting Wordpress sites with the W3 Total cache plugin running and
mod_pagespeed activated. Should I disable some of them?
Thanks!
Miguel
De: Reinis Rozitis <[email protected]>
Para: [email protected]
Enviado: Jueves 16 de abril de 2015 18:04
Asunto: Re: increase hitrate
> I'm realizing that i can only get a hitrate around 0.6 and the throughput
> is around 43 request per second. What am I doing wrong? How can I
> troubleshoot what's going on?
>
>
> sub vcl_deliver {
> if (obj.hits > 0) {
> set resp.http.X-Cache = "cached";
> } else {
> set resp.http.x-Cache = "uncached";
> }
Without going too much into the details, do you get those 43 req/s with the
cached header?
Eg is Varnish even caching anything or just piping the requests back to your
backend (since in the configuration there are quite a lot conditions where
the request is not cached)?
p.s. for testing purposes just to see the varnish raw throughput take a
static file.
rr
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc