Not caching immediately?

2008-01-31 Thread Aaron Pfeifer
Is there a possible reason Varnish would not immediately cache a file when put in front of s3, requiring multiple subsequent hits before caching? The scenario is: The file "foo.png" is uploaded to the web server and then stored onto S3. When a request is made for http://localhost/files/foo.png, V

Re: Not caching immediately?

2008-01-31 Thread Aaron Pfeifer
In case anyone runs into the same problem, with the help from the folks on #varnish, the problem is that piping a POST will cause the cache to be bypassed if the session remains open. The solution is to either: (1) Upgrade to trunk (I was using 1.1.2) (2) Add "set req.http.connection = "close";"

Re: Not caching immediately?

2008-02-01 Thread Stig Sandbeck Mathisen
"Aaron Pfeifer" <[EMAIL PROTECTED]> writes: > (1) Upgrade to trunk (I was using 1.1.2) May not be the best choice for all, I think > (2) Add "set req.http.connection = "close";" immediately before the > pipe for a POST Would this be an appropriate config snippet? vcl_pipe { set req.http.conn

Re: Not caching immediately?

2008-02-01 Thread Aaron Pfeifer
Good question. I actually tried that and it didn't seem to have the same effect. I didn't try diving into why it wouldn't have the same effect as the config I'm currently using: sub vcl_recv { ...stuff to determine whether to lookup... if (req.request == "POST") { set req.http.connectio

Re: Not caching immediately?

2008-02-13 Thread Dag-Erling Smørgrav
"Aaron Pfeifer" <[EMAIL PROTECTED]> writes: > In case anyone runs into the same problem, with the help from the folks on > #varnish, the problem is that piping a POST will cause the cache to be > bypassed if the session remains open. The solution is to either: > > (1) Upgrade to trunk (I was using