How do I use the subversion revision of a css file to prevent browser cache

Posted by Clayton on Stack Overflow See other posts from Stack Overflow or by Clayton
Published on 2010-03-30T18:24:03Z Indexed on 2010/03/30 18:33 UTC
Read the original article Hit count: 464

Filed under:
|
|

StackOverflow implements it like this:

 <link rel="stylesheet" href="http://sstatic.net/so/all.css?v=4542">

Every time the referenced files change, the href attribute of the link tag is updated in the HTML code, thus supporting caching and updated referenced files.

My question - how do you retrieve the subversion version of that css file to include in the link? Subversion keywords only tell you the revision of the file you are currently in.

I'm working with PHP/CodeIgniter + jQuery.

© Stack Overflow or respective owner

Related posts about cache

Related posts about php