0

Custom mold for checkbox, how to force reload of cached resources in browser?

asked 2016-08-08 12:32:57 +0800

aznavour gravatar image aznavour
26 3

Hi everybody,

I've created added a custom mold for the checkbox, to make it render as a toggle switch:

<language-addon>
<addon-name>toggle</addon-name>
<version>1.0</version>
<language-name>xul/html</language-name>

<component>
    <component-name>checkbox</component-name>
    <extends>checkbox</extends>
    <mold>
        <mold-name>toggle</mold-name>
        <mold-uri>mold/checkbox-toggle.js</mold-uri>
        <css-uri>css/checkbox-toggle.css</css-uri>
    </mold>
</component>

</language-addon>

How can I force the browser to reload the neccessary resource (I think its zk.wpd), without turning off the whole caching of web resources? I always experience a client side error telling me, the mold is not available. Once I press Ctrl-F5, it all works fine - but thats not an option for our users. Any help?

Thanks, Charles

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-08-10 07:03:04 +0800

aznavour gravatar image aznavour
26 3

I couldn't find a way to do this. For that reason, I followed the steps http://forum.zkoss.org/question/57413/how-to-force-my-custom-component-to-reload-on-browser/ (here) to create our own component and provide the version with:

<javascript-module name="my.package" version="1.1"/>
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: 2016-08-08 12:32:57 +0800

Seen: 18 times

Last updated: Aug 10 '16

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