Skip to content

Instantly share code, notes, and snippets.

@2dpi
Created June 17, 2012 14:34
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 2dpi/2944708 to your computer and use it in GitHub Desktop.
Save 2dpi/2944708 to your computer and use it in GitHub Desktop.
HTACCESS - Add vary based on user agent
online tools:
http://web-sniffer.net/
http://www.stepforth.com/resources/server-header-checker-tool/#.T93mC7UtgZl
http://www.rexswain.com/httpview.html
http://webtools.live2support.com/header.php
articles:
http://www.seomoz.org/ugc/responsive-web-design-the-ultimate-guide-for-online-marketers
HTACCESS >> add following line
Header append Vary User-Agent env=!dont-vary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment