All,

We've been using Wicket for some time now and are looking to improve the
caching of javascript resources in our web app.   Explicit headers are
being cached by the usual mechanism of calling
 JavascriptHeaderItem.forReference().   The cases I'm having trouble with
is when a javascript file is referencing another script, or a css file has
a .png file in a url().

Is there a way that I can say "All the static content in directory X (in
the war file) and below is to be cached using the typical Wicket
mechanisms"?

As an example, pdf.js will require() pdf.worker.js, which is a 1.5MB file.
  But I don't have control over the url being required.   How can I tell
wicket to enable the caching headers for requests to file "pdf.worker.js"
or "images/leftButton.png" with a 3600 second life.

I've read through the docs and tried several options suggested and nothing
seems to work.   I'm using Wicket 8.x under Jetty 9.4.19.

Thank you,

Alan

Reply via email to