Prevent WordPress Stylesheet from Being Cached


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



Copy this code and paste it in your HTML
  1. <link rel="stylesheet" href="<?php $theme_data = get_theme_data(TEMPLATEPATH . '/style.css'); bloginfo('stylesheet_url'); echo '?' . $theme_data['Version']; ?>" type="text/css" media="screen, projection" />

URL: http://www.wprecipes.com/prevent-wordpress-stylesheet-from-being-cached/comment-page-1#comment-12047

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.