Return to Snippet

Revision: 59862
at October 5, 2012 11:07 by dataworx


Updated Code
add_action( 'send_headers', 'add_header_vary_useragent' );
function add_header_vary_useragent() {
	header( 'Vary: User-Agent' );
}

Revision: 59861
at October 5, 2012 11:04 by dataworx


Initial Code
add_action( 'send_headers', 'add_header_xua' );
function add_header_xua() {
	header( 'Vary: User-Agent' );
}

Initial URL
vary-user-agent

Initial Description
Add  HTTP Header to Wordpress (ex: Vary: User-Agent)

Initial Title
Add  HTTP Header to Wordpress (ex: Vary: User-Agent)

Initial Tags
wordpress, mobile

Initial Language
PHP