Auto version CSS to update Cache
Posted: Mon May 14, 2012 5:33 am
Hi All,
Just wondering if anyone could help with this a little,
I want to integrate some code that will automatically update the file name of CSS files when they are changed, preventing users from browsing the site with an out of date CSS.
I found some code here;
http://www.kevinleary.net/simple-update ... ser-cache/
Which looks like it should work, but I am unsure as to which file I should include the php function in that renames the CSS.
Could anyone point me in the right direction, or even confirm if this will work in Opencart .
Many thanks
James
Just wondering if anyone could help with this a little,
I want to integrate some code that will automatically update the file name of CSS files when they are changed, preventing users from browsing the site with an out of date CSS.
I found some code here;
http://www.kevinleary.net/simple-update ... ser-cache/
Which looks like it should work, but I am unsure as to which file I should include the php function in that renames the CSS.
Could anyone point me in the right direction, or even confirm if this will work in Opencart .
Many thanks
James