Created
July 13, 2012 15:30
-
-
Save pglombardo/3105491 to your computer and use it in GitHub Desktop.
Rails expires_in unless logged in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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