Posted By

dataworx on 10/05/12


Tagged

wordpress mobile


Versions (?)

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


 / Published in: PHP
 

URL: vary-user-agent

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

  1. add_action( 'send_headers', 'add_header_vary_useragent' );
  2. function add_header_vary_useragent() {
  3. header( 'Vary: User-Agent' );
  4. }

Report this snippet  

You need to login to post a comment.