Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Static css file and xdv

What is the correct method to manage css file versioning using collective.xdv?

Now I use nginx to serve css directly. I tried to import them in the css_registry, but if I change a file the merged css doesn't update, I mean, its version number (eg. the 4931 in rescsstylesheets-cachekey4931.css) doesn't get incremented.

I use plone 4.04, any hints?

like image 667
martino Avatar asked Aug 25 '26 01:08

martino


1 Answers

that's not a version number. that's portal_css tool that merges and caches CSS files together for better performance.

While developing you have to enable CSS/JS debug in order to see changes in real time. Go to ZMI -> portal_css/javascript and check "debug mode" flag to be on.

If I'm not wrong, from plone 4.x you have this enabled by default if you are running your instance in debug mode (bin/instance fg or bin/client fg). If this doesn't occur, check into you zope.conf for "debug-mode = on".

like image 136
simahawk Avatar answered Aug 27 '26 15:08

simahawk