views:

19

answers:

1

I 'm trying to grasp the concept of versioning css/js files.

www.prelovac.com/vladimir/adding-version-to-theme-css-file


<link rel="stylesheet" href="/css/base.css?version=1234" type="text/css" />

This method will actually prevent the file from being cached, period! This is bad.

source


What is the best practice of doing this in Wordpress? I'm confused...

+1  A: 

That's not how it works in my experience. Browsers do cache based on GETs. To test this, go to the author's url (http://static.prelovac.com/style.css?1266235697) with firebug enabled. First request should give you "200 OK", now refresh and you get "304 Not Modified".

If you're not convinced, you can always try this method

Simon Scarfe
thank you, i needed someone to confirm this :)
fuSi0N