Skip to content

Instantly share code, notes, and snippets.

@traviskroberts
Created January 21, 2009 21:30
Show Gist options
  • Select an option

  • Save traviskroberts/50214 to your computer and use it in GitHub Desktop.

Select an option

Save traviskroberts/50214 to your computer and use it in GitHub Desktop.
caches_page :index, :if => Proc.new { |c|
c.request.env["HTTP_USER_AGENT"] && !c.request.env["HTTP_USER_AGENT"][/(Mobile\/.+Safari)/]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment