CSS caching problem

asked 2011-11-09 15:09:39 +0800

dastultz gravatar image dastultz
797 8


I have an application that is a mix of a home-grown framework and Zk 3.6.4. Both include links to CSS stylesheets. I have problems where the stylesheet is not reloaded (Zk-side) after a change. Usually SHIFT-reload takes care of the problem. Apache logs show the browser making requests for CSS files from my own framework but not Zk (until SHIFT-reload or cache clear). It seems that the browser (FF, Chrome, Safari and presumably IE, though I didn't test it) thinks what it has is current and doesn't even ask the server if there is a newer copy. Is there some header that Zk is setting or something I can set to make the browser check for a newer version?



delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2011-11-14 10:28:39 +0800

SimonPai gravatar image SimonPai
1696 1


Try to add the following in your zk.xml:



link publish delete flag offensive edit

answered 2011-11-14 16:15:04 +0800

dastultz gravatar image dastultz
797 8

Thanks Simon, I'll try it. Won't know for some time if it works.


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




Asked: 2011-11-09 15:09:39 +0800

Seen: 227 times

Last updated: Nov 14 '11

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