0

Caching of wpd-files, random part in zk generated URLs

asked 2011-02-21 10:46:00 +0800

krausest gravatar image krausest
15

Dear all,

zk generates URLs like /zkau/web/a6bea855/js/zk.wpd for the wpd and wcs files. Is some documentation available what that seemingly random part ("a6bea855") means? Is there some guarantee when the value changes?

Regarding best practice of caching for wcs and wpd files: How do I make sure that changes to the wpd file show up in the client (i.e. disable caching on changes)? What's the best way to cache wcs and wpd files (cacheable=true in wpd-descriptor, org.zkoss.web.classWebResource.cache.etag, just use the defaults)?

Yours,
Stefan

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2011-02-24 21:59:19 +0800

SimonPai gravatar image SimonPai
1696 1

Hi Stefan,

The hashed 8 characters is determined by ZK version, so when you upgrade ZK, client won't read the wrong cached files. To reflect change in wpd files, you can try to specify cacheable="false".

The default setting is optimized for best caching performance in general. But in addition, you can refer to Performance Tip.

Regards,
Simon

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2011-02-21 10:46:00 +0800

Seen: 252 times

Last updated: Feb 24 '11

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