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 <[email protected]> wrote: > Ok, thanks! > > > On Sep 9, 5:09 pm, Pedro Belo <[email protected]> wrote: >> At the time you told Heroku, 1pm. >> >> Thanks, >> Pedro >> >> On Thu, Sep 9, 2010 at 4:59 PM, Chris Hanks >> >> >> >> <[email protected]> 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 (setting the >> > 'Cache-Control' header to 'public, max-age=3600'). Alice visits the >> > page at noon, and Heroku stashes it in Varnish to expire at 1 p.m. >> > It's also cached in Alice's browser until 1 p.m., so that if she >> > requests it again before then, the request won't even reach Heroku. >> >> > Bob visits the same page at 12:30. Heroku still has it in Varnish, so >> > it returns it from there, and it's cached in Bob's browser. My >> > question is, when will Bob's browser expire it? At 1 p.m. (the time my >> > app told Heroku/Varnish it was good until), or 1:30 (one hour from the >> > time Bob received it)? >> >> > Thanks >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "Heroku" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group >> > athttp://groups.google.com/group/heroku?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
