org.zkoss.web.classWebResource.cache"
From Documentation
(Created page with ' {{ZKConfigurationReferencePageHeader}} Default: true [Since 3.6.3] It specifies whether to allow the browsers to cache the so-called class Web resources<ref>Class Web resour…') |
Robertwenzel (talk | contribs) m |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{ZKConfigurationReferencePageHeader}} |
+ | |||
+ | '''Property:''' | ||
+ | org.zkoss.web.classWebResource.cache | ||
+ | |||
+ | {{GlobalLibraryProperty}} | ||
Default: true | Default: true | ||
[Since 3.6.3] | [Since 3.6.3] | ||
− | It specifies whether to allow the browsers to cache | + | It specifies whether to allow the browsers to cache so-called class Web resources<ref>Class Web resources are resources that can be loaded by use of "~./*".</ref>. |
By default, it is true. It means the static class Web resources are cached in browsers if possible, unless you upgrade ZK to a different version. | By default, it is true. It means the static class Web resources are cached in browsers if possible, unless you upgrade ZK to a different version. | ||
Line 23: | Line 28: | ||
---- | ---- | ||
<references/> | <references/> | ||
− | + | </blockquote> | |
+ | |||
+ | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 06:57, 7 July 2016
Property:
org.zkoss.web.classWebResource.cache
Applicable: globally in zk.xml via <library-property> not as <custom-attribute>
Default: true [Since 3.6.3]
It specifies whether to allow the browsers to cache so-called class Web resources[1].
By default, it is true. It means the static class Web resources are cached in browsers if possible, unless you upgrade ZK to a different version.
Notice the you can control the immutable period of the CSS files of class Web resources with
another property called org.zkoss.web.classWebResource.cache.CSS.hours
.
If you are developing a component, it is better to turn it off (so you can force browser to load modified CSS and JS files by pressing F5).
<library-property>
<name>org.zkoss.web.classWebResource.cache</name>
<value>false</value>
</library-property>
- ↑ Class Web resources are resources that can be loaded by use of "~./*".