Question about HTTP caching

2010-09-09 Thread Chris Hanks
I've read through the caching docs, and Things Caches Do, but I'm still not clear on something, so here I am. Suppose I signal Heroku to cache a page for an hour (setting the 'Cache-Control' header to 'public, max-age=3600'). Alice visits the page at noon, and Heroku stashes it in Varnish to

Re: Question about HTTP caching

2010-09-09 Thread Pedro Belo
At the time you told Heroku, 1pm. Thanks, Pedro On Thu, Sep 9, 2010 at 4:59 PM, Chris Hanks christopher.m.ha...@gmail.com wrote: I've read through the caching docs, and Things Caches Do, but I'm still not clear on something, so here I am. Suppose I signal Heroku to cache a page for an hour

Re: Question about HTTP caching

2010-09-09 Thread Chris Hanks
Ok, thanks! On Sep 9, 5:09 pm, Pedro Belo pe...@heroku.com wrote: At the time you told Heroku, 1pm. Thanks, Pedro On Thu, Sep 9, 2010 at 4:59 PM, Chris Hanks christopher.m.ha...@gmail.com wrote: I've read through the caching docs, and Things Caches Do, but I'm still not clear on

Re: Question about HTTP caching

2010-09-09 Thread Pedro Belo
On a side note though, we run multiple caching servers - so there's no guarantee that Bob's request will hit the same server. If you need more control to your cache we recommend using Memcache. On Thu, Sep 9, 2010 at 5:14 PM, Chris Hanks christopher.m.ha...@gmail.com wrote: Ok, thanks! On

Re: Question about HTTP caching

2010-09-09 Thread Chris Hanks
Really? Why doesn't Heroku partition certain URLs to certain servers (through a hashing scheme or something similar)? I'm curious now :) How many servers are there? On Sep 9, 5:18 pm, Pedro Belo pe...@heroku.com wrote: On a side note though, we run multiple caching servers - so there's no

Re: Question about HTTP caching

2010-09-09 Thread Pedro Belo
Ops - you're right, it should go to the same server because of the hash ring. Guess I just got confused because we didn't always have it :) On Thu, Sep 9, 2010 at 6:28 PM, Chris Hanks christopher.m.ha...@gmail.com wrote: Really? Why doesn't Heroku partition certain URLs to certain servers