Cache Auth Tokens (or Caching HTTP headers in General) - Best Practices

Posted by viatropos on Stack Overflow See other posts from Stack Overflow or by viatropos
Published on 2010-03-17T17:41:37Z Indexed on 2010/03/17 18:11 UTC
Read the original article Hit count: 334

I'm using the Ruby GData Library to access Google Docs and I recently got the GData::Client::CaptchaError because I was re-logging in with every request. Reading this post, it recommends not logging in with every request, but caching the authentication token. How do I go about doing that correctly? Google says it expires every 24 hours, and it doesn't seem like I should store it in the session, so what should I do? I'm using Ruby on Rails with all this.

Thanks so much

© Stack Overflow or respective owner

Related posts about header

Related posts about cache