Skip to content

Instantly share code, notes, and snippets.

@Gregg
Created February 25, 2009 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gregg/70496 to your computer and use it in GitHub Desktop.
Save Gregg/70496 to your computer and use it in GitHub Desktop.
# To properly use the client-side cache commands with a reverse-proxy cache
expires_in 10.minutes, :private => false, :public => true
fresh_when :last_modified => @user.updated_at.utc
headers['Cache-Control'] = 'public'
fresh_when :etag => @user
headers['Cache-Control'] = 'public'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment