Ok here is my solution ...
In my app module I added ..
public void contributeComponentEventResultProcessor(final Response response,
MappedConfiguration,
ComponentEventResultProcessor> configuration) {
configuration.add(HttpErrorNotModified.class, new
ComponentEventResultProcessor() {
public void
I just saw that ResourceStreamerImpl.java checks modification time and does
...
response.sendError(HttpServletResponse.SC_NOT_MODIFIED, "");
Is there a way for me to achieve the same from my onActivate() method
below ...
I.e. how do I return a 304 when my image hasn't been changed according t
Do the images ever change? If not, you can use the same kind of
approach Tapestry uses for assets: incorporate a version number (or
SHA1 checksum) into the path, and set the headers that ensure caching
on the client (I'd have to check the Tapestry code for the exact ones
that work).
On Sat, Feb 2