Skip to content

Instantly share code, notes, and snippets.

@pglombardo
Created July 13, 2012 15:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pglombardo/3105491 to your computer and use it in GitHub Desktop.
Save pglombardo/3105491 to your computer and use it in GitHub Desktop.
Rails expires_in unless logged in
# Set cache headers unless this user is logged in
expires_in 1.hour, :public => true, 'max-stale' => 0 unless current_user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment