-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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
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
Asked: 2011-02-21 10:46:00 +0800
Seen: 252 times
Last updated: Feb 24 '11