HTML5 34
Force browsers to reload the (new) favicon By micha on 13th July 2018 11:24:21 AM
  1. To refresh your site's favicon you can force browsers to download a new version using the link tag and a querystring on your filename. This is especially helpful in production environments to make sure your users get the latest favicon.
  2.  
  3. <link rel="icon" href="<?php echo path('media'); ?>/favicon.ico?v=2" type="image/x-icon">

Paste is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.