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


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. add_action( 'send_headers', 'add_header_vary_useragent' );
  2. function add_header_vary_useragent() {
  3. header( 'Vary: User-Agent' );
  4. }

URL: vary-user-agent

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.