Saturday, July 27, 2013

How to Prevent CSS Caching in WordPress

This code add stylesheet with time of last update.

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); echo '?' . filemtime( get_stylesheet_directory() . '/style.css'); ?>" type="text/css" media="screen" />


Disqus Comments