-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I want to know if "org.zkoss.web.classWebResource.cache" is ONLY caching CSS AND JS or something else which will impact the performance? The customer always has to manually clear the cache if we ship new CSS/JS files, so I thought about not caching JS/CSS.
thank you
Yes, it is used for web resource like CSS and JS files, another way to solve the new version of CSS/JS files is to use the javascript-module that you have to pack your CSS and JS files into a custom-component.
You can turn off the zul and imported css file via <?link>
cache by the following settings in zk.xml
<?xml version="1.0" encoding="UTF-8"?>
<zk>
<library-property>
<name>org.zkoss.web.classWebResource.cache.CSS.hours</name>
<value>-1</value>
</library-property>
<library-property>
<name>org.zkoss.web.classWebResource.cache</name>
<value>false</value>
</library-property>
</zk>
Asked: 2014-08-27 08:14:09 +0800
Seen: 35 times
Last updated: Jun 26 '18