Created
April 27, 2011 23:20
-
-
Save robertsosinski/945453 to your computer and use it in GitHub Desktop.
Rack::Cache helpers
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
| # Expiration Methods | |
| cache_control :public, :max_age => 10.seconds | |
| expires 10.seconds.from_now | |
| # Validation Methods | |
| last_modified current_user.updated_at | |
| etag current_user.etag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment