-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3591583
By: notzippy
Hi
Probably somethng obvious, but i havent been able to find the following in any of the documentation or the forums
How do you change the cache control setting for a http://localhost:8080/test.zul ?
For example if I go to the above url once, then modify and save the file "test.zul"
then go to the same url it doesnt show any of the changes I made (even for a different session, until I restart the web application).
Is there a way to turn of the cache control ?
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3592116
By: tomyeh
ZK detects whether a file is changed automatically (by use of timestamp).
However, to have better performance, it checks the timestamp every 5 seconds.
So, if you press reload after saving the file for at least 5 seconds, you shall see the new content. And, there is a log message in your log files (depending your configuration).
Set org.zkoss.web.classWebResource.cache
to false in zk.xml
<?xml version="1.0" encoding="UTF-8"?>
<zk>
<library-property>
<name>org.zkoss.web.classWebResource.cache</name>
<value>false</value>
</library-property>
</zk>
Asked: 2006-02-22 19:23:22 +0800
Seen: 859 times
Last updated: Jun 26 '18