X

Prevent cached CSS

These are two example to control the caching of CSS for your wordpress theme. The first example appends time() to the end of the file name. The second method simply type ?v=1.0 and change the version number when you update your CSS.


	<style type="text/css" media="screen">
		@import url( <?php bloginfo('stylesheet_url'); ?>?<?php echo time(); ?> );
	</style>
	<style type="text/css" media="screen">
		@import url( <?php bloginfo('stylesheet_url'); ?>?v=1.0 );
	</style>

Comments  Leave a Reply

  1. If anyone wants to get multiple stylesheets working without cache you can try this
    <link rel="stylesheet" href="” type=”text/css” media=”screen, projection” />

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!