0

Refresh cache of CSS and Javascript on new Version

asked 2017-06-02 07:42:33 +0800

JustinFrost gravatar image JustinFrost
145 1 6

We have a web application which has several child projects, the structure is as follows:

main-webapp (web application)
    ui-component (custom zk components)
    ui-theme (zk theme project)
    ui-theme (2nd zk theme project)

The problem we have is when we change either the javascript or css styles in any of the child projects the browser needs a hard reload to pick them up.

I am updating the version-uid in the lang-addon, but it seems to have no effect.

I have managed to version the javascript wpd files in ui-component by adding a <javascript-module version="99.9"/> to the lang-addon there.

Unfortuantely the .WCS CSS files seem to be lumped together and I cannot find a way to give them a unique version which will change each time we create a new release of the project.

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
-1

answered 2017-06-10 13:19:09 +0800

Darksu gravatar image Darksu
1991 1 4

Hello JustinFrost,

You could disable the cache of the component as shown below:

https://www.zkoss.org/wiki/ZKClient-sideReference/WidgetPackageDescriptor/package#cacheable

Best,

Darksu

link publish delete flag offensive edit

Comments

Correct me of I am wrong Darksu, but that will only disable the cache of javascript packages. How do I disable the caching of the CSS in the .wcs files ?

JustinFrost ( 2017-06-20 06:17:52 +0800 )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: 2017-06-02 07:42:33 +0800

Seen: 43 times

Last updated: Jun 10 '17

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