Hi, first of all I just started using Varnish. I think it's great, but I'm a bit of a newbie :-)<br><br>I installed Varnish 2.1.4-1 on my localhost, which runs Ubuntu 11.04. It runs on port 8080 and connects to the backend on localhost port 80. I use the default config, except for that I added an unset.cookie in vlc_recv and I added the following code from the manual to normalize accept encodings:<br>

<br><font class="Apple-style-span" face="'courier new', monospace" color="#000066">     if (req.http.Accept-Encoding) {<br>        if (req.http.Accept-Encoding ~ "gzip") {<br>            set req.http.Accept-Encoding = "gzip";<br>

        } elsif (req.http.Accept-Encoding ~ "deflate") {<br>            set req.http.Accept-Encoding = "deflate";<br>        } else {<br>            # unkown algorithm<br>            remove req.http.Accept-Encoding;<br>

        }<br>     }</font><br><br>When I start testing in one browser, I successfully start getting hits for every identical request after the first one, so far so good. However I noticed that when I open exactly the same url in a different browser/client, the first request misses again, and then the second and third hit. Same happens if I try yet another client (I tried firefox, chrome and wget so far). As said above I tried to rule out cookies and encoding, but no difference. Below a dump of headers of a typical request to the back-end.<br>

<br><font class="Apple-style-span" face="'courier new', monospace" color="#000099">GET /api/json/test?arg1=10&arg2=100 HTTP/1.1<br>Host: localhost<br>User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20100101 Firefox/5.0<br>

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8<br>Accept-Language: en-us,en;q=0.5<br>Accept-Encoding: gzip, deflate<br>Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7<br>Connection: keep-alive<br>
Referer: <a href="http://localhost/api">http://localhost/api</a><br>
Cookie: ext-username_field=testuser<br><br>HTTP/1.1 200 OK<br>Date: Mon, 08 Aug 2011 21:03:30 GMT<br>Server: Apache/2.2.17 (Ubuntu)<br>Cache-Control: max-age=60, public<br>Vary: Accept-Encoding<br>Content-Encoding: gzip<br>

Content-Length: 97<br>Keep-Alive: timeout=15, max=100<br>Connection: Keep-Alive<br>Content-Type: text/plain</font><br><br>Any suggestions to what could possibly cause that results are only cached on a per-client basis, rather than globally? Is there any config I could use that everything is cached according to the URL? My backend API really doesn't care about anything else; Cookies, Authorization, User-agents are all ignored, it only looks at the url.<div>

<br></div><div>Thanks!</div><div><br></div><div>Jeroen</div>