Hi,

Which version of Wicket do you use ?
Wicket supports this out of the box.
See https://cwiki.apache.org/WICKET/caching-in-wicket-15.html for details.

On Fri, Sep 28, 2012 at 10:08 PM, dickster <derek.i...@gmail.com> wrote:
> i am trying to prevent pesky caching of CSS by having the html look like
>
> <link type="text/css" href="myStyle.css?version1" />        <-- yay,won't be
> cached when changed to version2
>
> as opposed to
>
> <link type="text/css" href="fieldid.css" />                       <-- boo,
> browser caches this too aggressively.
>
> i want this change every time the version gets updated.  i don't want to
> change all the usages of
> renderCssReference.  I was hoping for a component/page listener that would
> have a behavior to augment the css urls.   i'm sure i'm not the first to
> desire this output but haven't found the best way to do this.
>
> any ideas much appreciated.
>
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Appending-to-CSS-url-to-prevent-caching-tp4652508.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to