0

classWebResource.cache

asked 2014-08-27 08:14:09 +0800

IngoB gravatar image IngoB flag of Germany
256 6

updated 2014-08-27 08:16:18 +0800

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

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2015-04-07 03:13:10 +0800

jumperchen gravatar image jumperchen
3909 2 8
http://jumperchen.blogspo... ZK Team

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.

link publish delete flag offensive edit
0

answered 2018-06-26 11:15:54 +0800

matthung gravatar image matthung
3 2

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>
link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-08-27 08:14:09 +0800

Seen: 35 times

Last updated: Jun 26 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More