Re: [Wicket-user] ajax component caching
Why should be the css not cached? Where do you put the code you are mentioning? Because request that fetches css (and other resources) is different than request for a page / ajax request and wicket treats it differently. What's the reason of not caching css? -Matej Carfield Yim wrote: look like there is strangle browser cache for ajax component (modalwindow is the one I get this problem) . Even if I setup HTTP to no-cache: response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache); //response.setHeader(Cache-Control, private); response.setDateHeader(Expires, 0); And most of the content refresh nicely. However, the CSS that modalwindow referencing is still in cache. Not sure anyone have the problem before? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- get professional wicket training and consultation http://www.wicket-support.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax component caching
I am now put the CSS to classpath, after the CSS the browser don't get the new one. And this only happen in ModalWindows, normal webpage will fetch the CSS after it change On 12/18/06, Matej Knopp [EMAIL PROTECTED] wrote: Why should be the css not cached? Where do you put the code you are mentioning? Because request that fetches css (and other resources) is different than request for a page / ajax request and wicket treats it differently. What's the reason of not caching css? -Matej Carfield Yim wrote: look like there is strangle browser cache for ajax component (modalwindow is the one I get this problem) . Even if I setup HTTP to no-cache: response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache); //response.setHeader(Cache-Control, private); response.setDateHeader(Expires, 0); And most of the content refresh nicely. However, the CSS that modalwindow referencing is still in cache. Not sure anyone have the problem before? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- get professional wicket training and consultation http://www.wicket-support.com - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax component caching
There is indeed a good case for not caching css in development mode. It is a mortal sin in deployment mode. Erik. Carfield Yim wrote: I am now put the CSS to classpath, after the CSS the browser don't get the new one. And this only happen in ModalWindows, normal webpage will fetch the CSS after it change On 12/18/06, Matej Knopp [EMAIL PROTECTED] wrote: What's the reason of not caching css? -Matej -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax component caching
Where do you put the code you are mentioning? Because request that Forget to mention about this, I put this block of code at onBeginRequest() of my custom IRequestCycleFactory.newRequestCycle() . Which, I suppose the CSS put at class will change the HTTP response header when somebody request it. But may be it is not the case, not sure - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ajax component caching
On 12/18/06, Erik van Oosten [EMAIL PROTECTED] wrote: There is indeed a good case for not caching css in development mode. It is a mortal sin in deployment mode. Exactly, but look like it is hard to not cache CSS for AJAX request, and I just double confirmed that for normal webpage, it work perfectly - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user